summaryrefslogtreecommitdiff
path: root/src/core/edge-resistance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/edge-resistance.c')
-rw-r--r--src/core/edge-resistance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/edge-resistance.c b/src/core/edge-resistance.c
index d8a643a6..96c0055b 100644
--- a/src/core/edge-resistance.c
+++ b/src/core/edge-resistance.c
@@ -1161,7 +1161,7 @@ meta_window_edge_resistance_for_move (MetaWindow *window,
proposed_outer.y += (*new_y - old_y);
new_outer = proposed_outer;
- window->display->grab_last_user_action_was_snap = snap;
+ window->display->grab_last_user_action_was_snap = (snap != FALSE);
is_resize = FALSE;
if (apply_edge_resistance_to_each_side (window->display,
window,
@@ -1259,7 +1259,7 @@ meta_window_edge_resistance_for_resize (MetaWindow *window,
proposed_outer_width,
proposed_outer_height);
- window->display->grab_last_user_action_was_snap = snap;
+ window->display->grab_last_user_action_was_snap = (snap != FALSE);
is_resize = TRUE;
if (apply_edge_resistance_to_each_side (window->display,
window,