don't snap to below+skiptaskbar (desklets)
This commit is contained in:
parent
4e0ba65d30
commit
042b6bc5f7
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue