[gtk+/wip/matthiasc/monitor] notify for ::workarea changes



commit 4775aa24c7046a9f275491bf3653af4b9fc75e57
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Apr 3 23:38:08 2016 -0400

    notify for ::workarea changes
    
    The workarea generally changes whenever the geometry is modified.

 gdk/x11/gdkscreen-x11.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkscreen-x11.c b/gdk/x11/gdkscreen-x11.c
index 903cc12..839ffcc 100644
--- a/gdk/x11/gdkscreen-x11.c
+++ b/gdk/x11/gdkscreen-x11.c
@@ -597,6 +597,7 @@ init_randr15 (GdkScreen *screen, gboolean *changed)
 
       gdk_monitor_set_position (GDK_MONITOR (monitor), newgeo.x, newgeo.y);
       gdk_monitor_set_size (GDK_MONITOR (monitor), newgeo.width, newgeo.height);
+      g_object_notify (G_OBJECT (monitor), "workarea");
       gdk_monitor_set_physical_size (GDK_MONITOR (monitor),
                                      rr_monitors[i].mwidth,
                                      rr_monitors[i].mheight);
@@ -775,6 +776,7 @@ init_randr13 (GdkScreen *screen, gboolean *changed)
 
           gdk_monitor_set_position (GDK_MONITOR (monitor), newgeo.x, newgeo.y);
           gdk_monitor_set_size (GDK_MONITOR (monitor), newgeo.width, newgeo.height);
+          g_object_notify (G_OBJECT (monitor), "workarea");
           gdk_monitor_set_physical_size (GDK_MONITOR (monitor),
                                          output_info->mm_width,
                                          output_info->mm_height);
@@ -905,6 +907,7 @@ init_no_multihead (GdkScreen *screen, gboolean *changed)
   gdk_monitor_set_size (GDK_MONITOR (monitor),
                         gdk_screen_get_width (screen),
                         gdk_screen_get_height (screen));
+  g_object_notify (G_OBJECT (monitor), "workarea");
   gdk_monitor_set_physical_size (GDK_MONITOR (monitor),
                                  gdk_screen_get_height_mm (screen),
                                  gdk_screen_get_height_mm (screen));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]