forked from AuroraMiddleware/gtk
x11: Update root window scale when the screen scale changes
This commit is contained in:
parent
1db773cd9a
commit
9237da2e57
@ -1096,12 +1096,16 @@ _gdk_x11_screen_set_window_scale (GdkX11Screen *x11_screen,
|
||||
int scale)
|
||||
{
|
||||
GList *toplevels, *l;
|
||||
GdkWindow *root;
|
||||
|
||||
if (x11_screen->window_scale == scale)
|
||||
return;
|
||||
|
||||
x11_screen->window_scale = scale;
|
||||
|
||||
root = x11_screen->root_window;
|
||||
GDK_WINDOW_IMPL_X11 (root->impl)->window_scale = scale;
|
||||
|
||||
toplevels = gdk_screen_get_toplevel_windows (GDK_SCREEN (x11_screen));
|
||||
|
||||
for (l = toplevels; l != NULL; l = l->next)
|
||||
|
Loading…
Reference in New Issue
Block a user