X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fresist.c;h=0c7ec87e23355d5f1917f77ecb8656ffd7ffdd81;hb=b5e597f1b3a810610fd63f50c55dc5a8b715744e;hp=fc2934467b3c5ab509595979f4cbc595b65c1086;hpb=99daa7f5237b220b93bbec4854344d76cde3ef84;p=chaz%2Fopenbox diff --git a/openbox/resist.c b/openbox/resist.c index fc293446..0c7ec87e 100644 --- a/openbox/resist.c +++ b/openbox/resist.c @@ -57,7 +57,7 @@ void resist_move_windows(ObClient *c, gint *x, gint *y) target = it->data; /* don't snap to self or non-visibles */ - if (!target->frame->visible || target == c) continue; + if (!frame_visible(target->frame) || target == c) continue; /* don't snap to windows in layers beneath */ if(target->layer < c->layer && !config_resist_layers_below) @@ -199,7 +199,7 @@ void resist_size_windows(ObClient *c, gint *w, gint *h, ObCorner corn) target = it->data; /* don't snap to invisibles or ourself */ - if (!target->frame->visible || target == c) continue; + if (!frame_visible(target->frame) || target == c) continue; /* don't snap to windows in layers beneath */ if(target->layer < c->layer && !config_resist_layers_below)