Monitor_added signal after configure

Fixed order of monitor_added signal for Quartz display.
This commit is contained in:
LecrisUT 2020-03-26 13:06:45 +09:00
parent 6f372a811b
commit 788fef5e80

View File

@ -379,16 +379,17 @@ display_reconfiguration_callback (CGDirectDisplayID cg_display,
"display", display, NULL);
monitor->id = cg_display;
g_ptr_array_add (display->monitors, monitor);
display_rect (display);
configure_monitor (GDK_MONITOR (monitor), display);
gdk_display_monitor_added (GDK_DISPLAY (display),
GDK_MONITOR (monitor));
}
else
{
monitor = g_ptr_array_index (display->monitors, index);
display_rect (display);
configure_monitor (GDK_MONITOR (monitor), display);
}
display_rect (display);
configure_monitor (GDK_MONITOR (monitor), display);
}
else if (flags & (kCGDisplayRemoveFlag | kCGDisplayDisabledFlag))
{