[Xfce4-commits] r25132 - xfwm4/branches/xfce_4_4/src

Olivier Fourdan olivier at xfce.org
Wed Mar 7 22:03:50 CET 2007


Author: olivier
Date: 2007-03-07 21:03:50 +0000 (Wed, 07 Mar 2007)
New Revision: 25132

Modified:
   xfwm4/branches/xfce_4_4/src/client.c
   xfwm4/branches/xfce_4_4/src/netwm.c
Log:
Update frame extents when the window decoration extents change.

Modified: xfwm4/branches/xfce_4_4/src/client.c
===================================================================
--- xfwm4/branches/xfce_4_4/src/client.c	2007-03-07 21:02:14 UTC (rev 25131)
+++ xfwm4/branches/xfce_4_4/src/client.c	2007-03-07 21:03:50 UTC (rev 25132)
@@ -922,6 +922,14 @@
         wc.width = c->width;
         wc.height = c->height;
         clientConfigure (c, &wc, CWX | CWY | CWWidth | CWHeight, CFG_FORCE_REDRAW);
+
+        /* MWM hints can add or remove decorations, update NET_FRAME_EXTENTS accordingly */
+        setNetFrameExtents (display_info,
+                            c->window,
+                            frameTop (c),
+                            frameLeft (c),
+                            frameRight (c),
+                            frameBottom (c));
     }
 }
 
@@ -3140,6 +3148,14 @@
     c->height = wc.height;
     c->width = wc.width;
 
+    /* Maximizing may remove decoration on the side, update NET_FRAME_EXTENTS accordingly */
+    setNetFrameExtents (display_info,
+                        c->window,
+                        frameTop (c),
+                        frameLeft (c),
+                        frameRight (c),
+                        frameBottom (c));
+
     if (FLAG_TEST (c->xfwm_flags, XFWM_FLAG_MANAGED) && (restore_position))
     {
         /*

Modified: xfwm4/branches/xfce_4_4/src/netwm.c
===================================================================
--- xfwm4/branches/xfce_4_4/src/netwm.c	2007-03-07 21:02:14 UTC (rev 25131)
+++ xfwm4/branches/xfce_4_4/src/netwm.c	2007-03-07 21:03:50 UTC (rev 25132)
@@ -754,6 +754,15 @@
         c->width = wc.width;
     }
     clientSetLayer (c, layer);
+
+    /* Fullscreen has no decoration at all, update NET_FRAME_EXTENTS accordingly */
+    setNetFrameExtents (display_info,
+                        c->window,
+                        frameTop (c),
+                        frameLeft (c),
+                        frameRight (c),
+                        frameBottom (c));
+
 }
 
 void



More information about the Xfce4-commits mailing list