resist all layers
authorDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 20:38:19 +0000 (20:38 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 20:38:19 +0000 (20:38 +0000)
openbox/resist.c

index 56bd214..ab71d13 100644 (file)
@@ -57,9 +57,6 @@ void resist_move_windows(ObClient *c, gint resist, gint *x, gint *y)
 
         if (!WINDOW_IS_CLIENT(it->data))
             continue;
-        /* only snap in the same layer */
-        if (window_layer(it->data) != c->layer)
-            continue;
         target = it->data;
 
         /* don't snap to self or non-visibles */
@@ -206,9 +203,6 @@ void resist_size_windows(ObClient *c, gint resist, gint *w, gint *h,
     for (it = stacking_list; it; it = g_list_next(it)) {
         if (!WINDOW_IS_CLIENT(it->data))
             continue;
-        /* only snap in the same layer */
-        if (window_layer(it->data) != c->layer)
-            continue;
         target = it->data;
 
         /* don't snap to invisibles or ourself */