mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 21:19:18 +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;
|
break;
|
||||||
case EnterNotify:
|
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 entered window. */
|
||||||
_mouse_on = TRUE;
|
_mouse_on = TRUE;
|
||||||
mouse_savedx = event->xcrossing.x;
|
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);
|
(*_xwin_mouse_interrupt)(0, 0, 0, 0, mouse_buttons);
|
||||||
break;
|
break;
|
||||||
case LeaveNotify:
|
case LeaveNotify:
|
||||||
|
if (event->xcrossing.mode != NotifyNormal)
|
||||||
|
break;
|
||||||
_mouse_on = FALSE;
|
_mouse_on = FALSE;
|
||||||
if (_xwin_mouse_interrupt)
|
if (_xwin_mouse_interrupt)
|
||||||
(*_xwin_mouse_interrupt)(0, 0, 0, 0, mouse_buttons);
|
(*_xwin_mouse_interrupt)(0, 0, 0, 0, mouse_buttons);
|
||||||
|
Loading…
Reference in New Issue
Block a user