]> Dogcows Code - chaz/openbox/blobdiff - plugins/resistance.c
give the dock a strut and use it
[chaz/openbox] / plugins / resistance.c
index 4c2dad63906b72bd5f5f75f9fcee439ba0bd8a4e..bafd362c0ec8c62a5cf77a204898d0ff6874b1de 100644 (file)
@@ -65,6 +65,8 @@ static void resist_move(Client *c, int *x, int *y)
             Client *target;
             int tl, tt, tr, tb; /* 1 past the target's edges on each side */
 
+            if (!WINDOW_IS_CLIENT(it->data))
+                continue;
             target = it->data;
             /* don't snap to self or non-visibles */
             if (!target->frame->visible || target == c) continue; 
@@ -160,6 +162,8 @@ static void resist_size(Client *c, int *w, int *h, Corner corn)
     /* snap to other windows */
     if (resist_windows) {
         for (it = stacking_list; it != NULL; it = it->next) {
+            if (!WINDOW_IS_CLIENT(it->data))
+                continue;
             target = it->data;
 
             /* don't snap to invisibles or ourself */
This page took 0.02178 seconds and 4 git commands to generate.