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)
|
int scale)
|
||||||
{
|
{
|
||||||
GList *toplevels, *l;
|
GList *toplevels, *l;
|
||||||
|
GdkWindow *root;
|
||||||
|
|
||||||
if (x11_screen->window_scale == scale)
|
if (x11_screen->window_scale == scale)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
x11_screen->window_scale = scale;
|
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));
|
toplevels = gdk_screen_get_toplevel_windows (GDK_SCREEN (x11_screen));
|
||||||
|
|
||||||
for (l = toplevels; l != NULL; l = l->next)
|
for (l = toplevels; l != NULL; l = l->next)
|
||||||
|
Loading…
Reference in New Issue
Block a user