[gtk+] wayland: Also emit monitors-changed when monitors are unplugged
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Also emit monitors-changed when monitors are unplugged
- Date: Wed, 27 Mar 2013 01:53:34 +0000 (UTC)
commit ca09a600c39ffc867460b079b8f0852d4c3fb5b7
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 26 21:53:41 2013 -0400
wayland: Also emit monitors-changed when monitors are unplugged
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 cdfef56..845ae14 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;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]