X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fresistance.c;h=bafd362c0ec8c62a5cf77a204898d0ff6874b1de;hb=7a166a383805f7693e0800f3bf693e3736463a0d;hp=cc628492cb80da867b2ae56d9cbe8d46ed4242da;hpb=58cfbb7f8419e084af6b6b8b00c88ed270c29e88;p=chaz%2Fopenbox diff --git a/plugins/resistance.c b/plugins/resistance.c index cc628492..bafd362c 100644 --- a/plugins/resistance.c +++ b/plugins/resistance.c @@ -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 */