Merge branch 'randr' into 'master'

x11: Fix handling of `RRScreenChangeNotify`/`RRNotify` events

See merge request GNOME/gtk!3894
This commit is contained in:
Matthias Clasen 2021-08-28 17:17:00 +00:00
commit 79dc1a2a4d

View File

@ -1037,8 +1037,8 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator,
if (xevent->type - display_x11->xrandr_event_base == RRScreenChangeNotify ||
xevent->type - display_x11->xrandr_event_base == RRNotify)
{
if (x11_screen)
_gdk_x11_screen_size_changed (x11_screen, xevent);
if (display_x11->screen)
_gdk_x11_screen_size_changed (display_x11->screen, xevent);
}
else
#endif