From: Dana Jansens Date: Sun, 11 May 2003 23:59:16 +0000 (+0000) Subject: watch out for stacking_list X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=80dfe9cbe829d9abe5ba95eed2c067a71aa3f073;p=chaz%2Fopenbox watch out for stacking_list --- 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 */