mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 03:16:58 +00:00
Fix clicks on X11 (fix #971)
This commit is contained in:
parent
2bbd918d99
commit
fb4fc576bc
@ -2426,6 +2426,11 @@ static void _xwin_private_process_event(XEvent *event)
|
||||
}
|
||||
break;
|
||||
case EnterNotify:
|
||||
/* Do not generate Enter/Leave notifications when
|
||||
XGrabPointer/XUngrabPointer() are called
|
||||
(NotifyGrab/NotifyUngrab modes). */
|
||||
if (event->xcrossing.mode != NotifyNormal)
|
||||
break;
|
||||
/* Mouse entered window. */
|
||||
_mouse_on = TRUE;
|
||||
mouse_savedx = event->xcrossing.x;
|
||||
@ -2442,6 +2447,8 @@ static void _xwin_private_process_event(XEvent *event)
|
||||
(*_xwin_mouse_interrupt)(0, 0, 0, 0, mouse_buttons);
|
||||
break;
|
||||
case LeaveNotify:
|
||||
if (event->xcrossing.mode != NotifyNormal)
|
||||
break;
|
||||
_mouse_on = FALSE;
|
||||
if (_xwin_mouse_interrupt)
|
||||
(*_xwin_mouse_interrupt)(0, 0, 0, 0, mouse_buttons);
|
||||
|
Loading…
Reference in New Issue
Block a user