forked from AuroraMiddleware/gtk
Merge branch MR1570 into gtk-3-24.
This commit is contained in:
commit
56eeda6c7c
@ -379,16 +379,17 @@ display_reconfiguration_callback (CGDirectDisplayID cg_display,
|
|||||||
"display", display, NULL);
|
"display", display, NULL);
|
||||||
monitor->id = cg_display;
|
monitor->id = cg_display;
|
||||||
g_ptr_array_add (display->monitors, monitor);
|
g_ptr_array_add (display->monitors, monitor);
|
||||||
|
display_rect (display);
|
||||||
|
configure_monitor (GDK_MONITOR (monitor), display);
|
||||||
gdk_display_monitor_added (GDK_DISPLAY (display),
|
gdk_display_monitor_added (GDK_DISPLAY (display),
|
||||||
GDK_MONITOR (monitor));
|
GDK_MONITOR (monitor));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
monitor = g_ptr_array_index (display->monitors, index);
|
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))
|
else if (flags & (kCGDisplayRemoveFlag | kCGDisplayDisabledFlag))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user