Author: jasper Date: 2007-07-30 19:21:29 +0000 (Mon, 30 Jul 2007) New Revision: 25939
Modified: xfce4-panel/trunk/NEWS xfce4-panel/trunk/panel/panel-properties.c Log: Fix window manager hints reporting width 1 pixel too wide (bug #3402). Modified: xfce4-panel/trunk/NEWS =================================================================== --- xfce4-panel/trunk/NEWS 2007-07-30 13:18:46 UTC (rev 25938) +++ xfce4-panel/trunk/NEWS 2007-07-30 19:21:29 UTC (rev 25939) @@ -1,5 +1,7 @@ 4.5.x ===== +- Fix window manager hints reporting width 1 pixel too wide (bug #3402). + (Jasper) - Make itembar not care about expanded items when panel is not full width. (Jasper) - Separator can have different styles: space, expanded space, line (default), Modified: xfce4-panel/trunk/panel/panel-properties.c =================================================================== --- xfce4-panel/trunk/panel/panel-properties.c 2007-07-30 13:18:46 UTC (rev 25938) +++ xfce4-panel/trunk/panel/panel-properties.c 2007-07-30 19:21:29 UTC (rev 25939) @@ -297,7 +297,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)) @@ -312,7 +312,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)) @@ -326,7 +326,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 @@ -341,7 +341,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 Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits