summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-13 14:40:05 +0000
committerDana Jansens <danakj@orodu.net>2007-06-13 14:40:05 +0000
commit338798a408e52304cc560093247e496e73b20140 (patch)
treee396b8ce523edc2c1d4bde6167631e8acc7d95a6
parent042b6bc5f7b94de4718d7baac02d84c9aa1d875e (diff)
let desklets snap to eachother
-rw-r--r--openbox/resist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/resist.c b/openbox/resist.c
index e3d32d64..211a012c 100644
--- a/openbox/resist.c
+++ b/openbox/resist.c
@@ -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);