diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-13 14:39:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-13 14:39:23 +0000 |
| commit | 042b6bc5f7b94de4718d7baac02d84c9aa1d875e (patch) | |
| tree | 5676136ad4f96848bbaadcdfddf0ffd7be492ae6 /openbox | |
| parent | 4e0ba65d30f537cb223a402e44c5bdd976f47f2a (diff) | |
don't snap to below+skiptaskbar (desklets)
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/resist.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbox/resist.c b/openbox/resist.c index 3ab04a98..e3d32d64 100644 --- a/openbox/resist.c +++ b/openbox/resist.c @@ -61,6 +61,8 @@ 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; tl = RECT_LEFT(target->frame->area) - 1; tt = RECT_TOP(target->frame->area) - 1; @@ -217,6 +219,8 @@ 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; tl = RECT_LEFT(target->frame->area); tr = RECT_RIGHT(target->frame->area); |
