Author: jasper
Date: 2007-07-30 19:22:58 +0000 (Mon, 30 Jul 2007)
New Revision: 25940

Modified:
   xfce4-panel/branches/xfce_4_4/NEWS
   xfce4-panel/branches/xfce_4_4/panel/panel-properties.c
Log:
Fix window manager hints reporting width 1 pixel too wide (bug #3402).

Modified: xfce4-panel/branches/xfce_4_4/NEWS
===================================================================
--- xfce4-panel/branches/xfce_4_4/NEWS  2007-07-30 19:21:29 UTC (rev 25939)
+++ xfce4-panel/branches/xfce_4_4/NEWS  2007-07-30 19:22:58 UTC (rev 25940)
@@ -3,6 +3,7 @@
 
 4.4.2
 =====
+- Fix window manager hints reporting width 1 pixel too wide (bug #3402).
 - Improve MCS plugin code. (Nick)
 - Fix expansion of items a non-full-width panel. (Jasper)
 - Make sure tooltips are set for more than 1 clock instance (bug #3109).

Modified: xfce4-panel/branches/xfce_4_4/panel/panel-properties.c
===================================================================
--- xfce4-panel/branches/xfce_4_4/panel/panel-properties.c      2007-07-30 
19:21:29 UTC (rev 25939)
+++ xfce4-panel/branches/xfce_4_4/panel/panel-properties.c      2007-07-30 
19:22:58 UTC (rev 25940)
@@ -293,7 +293,7 @@
                 data[0] = xmon->geometry.x 
                           + w;          /* left           */
                 data[4] = y;            /* left_start_y   */
-                data[5] = y + h;        /* left_end_y     */
+                data[5] = y + h - 1;    /* left_end_y     */
             }
         }
         else if (xfce_screen_position_is_right (priv->screen_position))
@@ -308,7 +308,7 @@
                            - xmon->geometry.x - xmon->geometry.width 
                            + w;         /* right          */
                 data[6] = y;            /* right_start_y  */
-                data[7] = y + h;        /* right_end_y    */
+                data[7] = y + h - 1;    /* right_end_y    */
             }
         }
         else if (xfce_screen_position_is_top (priv->screen_position))
@@ -322,7 +322,7 @@
                 data[2] = xmon->geometry.y 
                           + h;          /* top            */
                 data[8] = x;            /* top_start_x    */
-                data[9] = x + w;        /* top_end_x      */
+                data[9] = x + w - 1;    /* top_end_x      */
             }
         }
         else
@@ -337,7 +337,7 @@
                            - xmon->geometry.y - xmon->geometry.height 
                            + h;         /* bottom         */
                 data[10] = x;           /* bottom_start_x */
-                data[11] = x + w;       /* bottom_end_x   */
+                data[11] = x + w - 1;   /* bottom_end_x   */
             }
         }
     }

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to