x11: Update root window scale when the screen scale changes

This commit is contained in:
Alexander Larsson 2013-08-03 16:49:38 +02:00
parent 1db773cd9a
commit 9237da2e57

View File

@ -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)