]> Dogcows Code - chaz/openbox/commitdiff
watch out for stacking_list
authorDana Jansens <danakj@orodu.net>
Sun, 11 May 2003 23:59:16 +0000 (23:59 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 11 May 2003 23:59:16 +0000 (23:59 +0000)
plugins/resistance.c

index cc628492cb80da867b2ae56d9cbe8d46ed4242da..bafd362c0ec8c62a5cf77a204898d0ff6874b1de 100644 (file)
@@ -162,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.021485 seconds and 4 git commands to generate.