diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-03-26 21:53:41 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-03-26 21:53:41 -0400 |
commit | ca09a600c39ffc867460b079b8f0852d4c3fb5b7 (patch) | |
tree | c282835b3c96596a151cf68cbc3ee2fcb2b21822 /gdk/wayland/gdkscreen-wayland.c | |
parent | 27e517a445e30dfc0dbd41e28f669117812729f5 (diff) | |
download | gtk+-ca09a600c39ffc867460b079b8f0852d4c3fb5b7.tar.gz |
wayland: Also emit monitors-changed when monitors are unplugged
Diffstat (limited to 'gdk/wayland/gdkscreen-wayland.c')
-rw-r--r-- | gdk/wayland/gdkscreen-wayland.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/wayland/gdkscreen-wayland.c b/gdk/wayland/gdkscreen-wayland.c index cdfef56a8f..845ae141a0 100644 --- a/gdk/wayland/gdkscreen-wayland.c +++ b/gdk/wayland/gdkscreen-wayland.c @@ -962,6 +962,9 @@ _gdk_wayland_screen_remove_output_by_id (GdkScreen *screen, if (wl_proxy_get_id ((struct wl_proxy *)monitor->output) == id) { g_ptr_array_remove (screen_wayland->monitors, monitor); + + g_signal_emit_by_name (screen_wayland, "monitors-changed"); + update_screen_size (screen_wayland); break; } } |