Snap attraction between windows

Jens Guballa J.Guballa at t-online.de
Mon Mar 10 20:59:59 CET 2003


Hi Olivier,

On Sun, Mar 09, 2003 at 11:11:49PM +0100, Olivier Fourdan wrote:
> Jens,
> 
> Looks fine to me. I've committed your change to CVS.

I just found one smaller bug in the patch: when a window has a
width or height lower than the snap border value, it snaps to itself.

To try this you can shade a window and set the border snap width to the
maximum value. Then move the window vertically.

I have attached a correction based on the actual CVS-version of xfwm4.

Best regards,
Jens
-------------- next part --------------
--- xfce-devel/xfwm4/src/client.c	Sun Mar  9 23:11:40 2003
+++ xfce-patched/xfwm4/src/client.c	Mon Mar 10 20:22:35 2003
@@ -3341,7 +3341,7 @@
 
             for(c2 = clients, i = 0; i < client_count; c2 = c2->next, i++)
             {
-                if (CLIENT_FLAG_TEST(c2, CLIENT_FLAG_VISIBLE)) 
+                if (CLIENT_FLAG_TEST(c2, CLIENT_FLAG_VISIBLE) && (c != c2)) 
                 {
                     c_frame_x1 = frameX(c2);
                     c_frame_x2 = c_frame_x1 + frameWidth(c2);


More information about the Xfce4-dev mailing list