]> Dogcows Code - chaz/openbox/commitdiff
let desklets snap to eachother
authorDana Jansens <danakj@orodu.net>
Wed, 13 Jun 2007 14:40:05 +0000 (14:40 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 13 Jun 2007 14:40:05 +0000 (14:40 +0000)
openbox/resist.c

index e3d32d64a956e0bf3a2cddfac486f9e3bdd1bfba..211a012c78215461a5983d3ee5fc4deb7aa95d81 100644 (file)
@@ -62,7 +62,7 @@ void resist_move_windows(ObClient *c, gint resist, gint *x, gint *y)
         /* don't snap to self or non-visibles */
         if (!target->frame->visible || target == c) continue; 
         /* don't snap to windows set to below and skip_taskbar (desklets) */
-        if (target->below && target->skip_taskbar) continue;
+        if (target->below && !c->below && target->skip_taskbar) continue;
 
         tl = RECT_LEFT(target->frame->area) - 1;
         tt = RECT_TOP(target->frame->area) - 1;
@@ -220,7 +220,7 @@ void resist_size_windows(ObClient *c, gint resist, gint *w, gint *h,
         /* don't snap to invisibles or ourself */
         if (!target->frame->visible || target == c) continue; 
         /* don't snap to windows set to below and skip_taskbar (desklets) */
-        if (target->below && target->skip_taskbar) continue;
+        if (target->below && !c->below && target->skip_taskbar) continue;
 
         tl = RECT_LEFT(target->frame->area);
         tr = RECT_RIGHT(target->frame->area);
This page took 0.024419 seconds and 4 git commands to generate.