summaryrefslogtreecommitdiff
path: root/openbox/resist.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/resist.c')
-rw-r--r--openbox/resist.c4
1 files changed, 2 insertions, 2 deletions
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)