Commit ba18c630 authored by Soeren Sandmann's avatar Soeren Sandmann Committed by Søren Sandmann Pedersen

Handle crossing events during resizing. (#93384).

Mon Dec  9 22:09:56 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

	* src/display.c, src/window.c: Handle crossing events during
	resizing. (#93384).
parent a70fc325
Mon Dec 9 22:09:56 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* src/display.c, src/window.c: Handle crossing events during
resizing. (#93384).
2002-12-09 Havoc Pennington <hp@redhat.com>
* configure.in: 2.4.8
......
......@@ -1252,6 +1252,12 @@ event_callback (XEvent *event,
meta_window_handle_mouse_grab_op_event (window, event);
break;
case EnterNotify:
if (grab_op_is_mouse (display->grab_op) &&
display->grab_window == window)
{
meta_window_handle_mouse_grab_op_event (window, event);
break;
}
/* do this even if window->has_focus to avoid races */
if (window && !serial_is_ignored (display, event->xany.serial) &&
event->xcrossing.detail != NotifyInferior)
......@@ -1311,6 +1317,12 @@ event_callback (XEvent *event,
}
break;
case LeaveNotify:
if (grab_op_is_mouse (display->grab_op) &&
display->grab_window == window)
{
meta_window_handle_mouse_grab_op_event (window, event);
break;
}
if (window)
{
switch (meta_prefs_get_focus_mode ())
......@@ -2374,7 +2386,8 @@ meta_display_set_grab_op_cursor (MetaDisplay *display,
cursor = xcursor_for_op (display, op);
#define GRAB_MASK (PointerMotionMask | PointerMotionHintMask | \
ButtonPressMask | ButtonReleaseMask)
ButtonPressMask | ButtonReleaseMask | \
EnterWindowMask | LeaveWindowMask)
if (change_pointer)
{
......
......@@ -6289,7 +6289,9 @@ meta_window_handle_mouse_grab_op_event (MetaWindow *window,
meta_display_end_grab_op (window->display, event->xbutton.time);
break;
case EnterNotify:
case LeaveNotify:
case MotionNotify:
switch (window->display->grab_op)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment