wayland: Emit monitors-changed when monitors change
This commit is contained in:
@ -876,6 +876,9 @@ output_handle_geometry(void *data,
|
||||
*/
|
||||
if (display->init_ref_count > 0)
|
||||
display->init_ref_count--;
|
||||
|
||||
if (monitor->geometry.width != 0)
|
||||
g_signal_emit_by_name (monitor->screen, "monitors-changed");
|
||||
}
|
||||
|
||||
static void
|
||||
@ -894,6 +897,8 @@ output_handle_mode(void *data,
|
||||
monitor->geometry.width = width;
|
||||
monitor->geometry.height = height;
|
||||
|
||||
g_signal_emit_by_name (monitor->screen, "monitors-changed");
|
||||
|
||||
monitor->screen->width =
|
||||
MAX (monitor->screen->width, monitor->geometry.x + width);
|
||||
monitor->screen->height =
|
||||
|
||||
Reference in New Issue
Block a user