Resist on skip_taskbar windows too
authorMikael Magnusson <mikachu@comhem.se>
Thu, 26 Jul 2007 06:19:14 +0000 (08:19 +0200)
committerMikael Magnusson <mikachu@gmail.com>
Sat, 11 Oct 2014 00:17:20 +0000 (02:17 +0200)
openbox/resist.c

index 12f5632..5fe2b3e 100644 (file)
@@ -119,9 +119,6 @@ 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 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 && !c->below && target->skip_taskbar)
-            continue;
 
         if (resist_move_window(c->frame->area, target->frame->area,
                                resist, x, y))
 
         if (resist_move_window(c->frame->area, target->frame->area,
                                resist, x, y))
@@ -306,9 +303,6 @@ 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 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 && !c->below && target->skip_taskbar)
-            continue;
 
         if (resist_size_window(c->frame->area, target->frame->area,
                                resist, w, h, dir))
 
         if (resist_size_window(c->frame->area, target->frame->area,
                                resist, w, h, dir))