mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Be consistent with X11: emit monitors-changed first, then size-changed
This commit is contained in:
parent
aa25e4a51c
commit
d26dd103b2
@ -186,15 +186,15 @@ process_display_reconfiguration (GdkScreenQuartz *screen)
|
||||
|
||||
gdk_screen_quartz_calculate_layout (GDK_SCREEN_QUARTZ (screen));
|
||||
|
||||
if (width != gdk_screen_get_width (GDK_SCREEN (screen))
|
||||
|| height != gdk_screen_get_height (GDK_SCREEN (screen)))
|
||||
g_signal_emit_by_name (screen, "size-changed");
|
||||
|
||||
if (screen->emit_monitors_changed)
|
||||
{
|
||||
g_signal_emit_by_name (screen, "monitors-changed");
|
||||
screen->emit_monitors_changed = FALSE;
|
||||
}
|
||||
|
||||
if (width != gdk_screen_get_width (GDK_SCREEN (screen))
|
||||
|| height != gdk_screen_get_height (GDK_SCREEN (screen)))
|
||||
g_signal_emit_by_name (screen, "size-changed");
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user