Package: fvwm
Version: 1:2.5.18-3
Followup-For: Bug #458163

the patch extracted from upstream CVS is attached
Index: placement.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/fvwm/placement.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -r1.167 -r1.168
--- placement.c 4 Feb 2007 21:47:45 -0000       1.167
+++ placement.c 9 Jan 2008 10:36:05 -0000       1.168
@@ -665,8 +665,8 @@
                        other_fw->g.frame.x - stickyx < arg->page_p2.x)
                {
                        win_left =
-                               arg->screen_g.x + other_fw->g.frame.x -
-                               stickyx - arg->place_g.width;
+                               other_fw->g.frame.x - stickyx -
+                               arg->place_g.width;
                        for (i = start; i <= CP_GET_NEXT_STEP; i++)
                        {
                                xtest = win_left + other_fw->g.frame.width *
@@ -677,8 +677,7 @@
                                        xnew = MIN(xnew, xtest);
                                }
                        }
-                       win_left = arg->screen_g.x + other_fw->g.frame.x -
-                               stickyx;
+                       win_left = other_fw->g.frame.x - stickyx;
                        for (i = start; i <= CP_GET_NEXT_STEP; i++)
                        {
                                xtest = win_left + other_fw->g.frame.width *
@@ -790,7 +789,7 @@
                }
                else
                {
-                       win_top = other_fw->g.frame.y - stickyy;;
+                       win_top = other_fw->g.frame.y - stickyy;
                        for (i = start; i <= CP_GET_NEXT_STEP; i++)
                        {
                                ytest =

Reply via email to