summaryrefslogtreecommitdiff
path: root/src/display.h
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2005-10-24 01:24:54 +0000
committerElijah Newren <newren@src.gnome.org>2005-10-24 01:24:54 +0000
commit895ce4d11e4df28ff35d5d97b14fc276d412bd08 (patch)
treea96d6eee061d9a51a68558e90d38b84bad5bb00a /src/display.h
parent290fad0783714056618d13530163d3bf380381bb (diff)
downloadmetacity-895ce4d11e4df28ff35d5d97b14fc276d412bd08.tar.gz
Fix (both keyboard and mouse) snap-moving from erroneously operating
2005-10-23 Elijah Newren <newren@gmail.com> Fix (both keyboard and mouse) snap-moving from erroneously operating multi-dimensionally. #124582. * src/display.h (struct MetaDisplay): to avoid some flickering, add a grab_ignore_enter_leave_until_mouse_motion field * src/display.c (meta_display_being_grab_op): Initialize display->grab_ignore_enter_leave_until_mouse_motion * src/window.c (update_move): get the old position of the window and only do snap moving if the position has changed, also fix a horizontal/vertical maximization positioning bug, (meta_window_handle_mouse_grab_op_event): handle display->grab_ignore_enter_leave_until_mouse_motion, (warp_grab_pointer): update the grab position so that the mouse motion from the warping of the pointer doesn't cause snapping too, turn off using enter/leave notify events for mouse motion in order to avoid some flickering
Diffstat (limited to 'src/display.h')
-rw-r--r--src/display.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/display.h b/src/display.h
index 5d587533..dfad444c 100644
--- a/src/display.h
+++ b/src/display.h
@@ -253,6 +253,7 @@ struct _MetaDisplay
MetaRectangle grab_anchor_window_pos;
int grab_latest_motion_x;
int grab_latest_motion_y;
+ gboolean grab_ignore_enter_leave_until_mouse_motion;
gulong grab_mask;
guint grab_have_pointer : 1;
guint grab_have_keyboard : 1;