forked from AuroraMiddleware/gtk
gdkwindow-x11: Fix graphical regression from 5e325c4
Before 5e325c4, the default BitGravity was NorthWestGravity. When static gravities were removed in 5e325c4, the BitGravity regressed to the X11 default, Forget. Forget causes giant graphical glitches and black flashes when resizing, especially in some environments that aren't synchronized to a paint clock yet, like XWayland. I'm assuming that the author assumed that the default of BitGravity was NorthWestGravity, which is the default of WinGravity. Just go ahead and fix this regression to make resizing look smooth again.
This commit is contained in:
parent
abfc9cd4eb
commit
ea21c4563b
@ -1062,6 +1062,9 @@ _gdk_x11_display_create_window_impl (GdkDisplay *display,
|
||||
xattributes.border_pixel = BlackPixel (xdisplay, x11_screen->screen_num);
|
||||
xattributes_mask |= CWBorderPixel | CWBackPixel;
|
||||
|
||||
xattributes.bit_gravity = NorthWestGravity;
|
||||
xattributes_mask |= CWBitGravity;
|
||||
|
||||
xattributes.colormap = _gdk_visual_get_x11_colormap (window->visual);
|
||||
xattributes_mask |= CWColormap;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user