From 9aa35c9c0a5220af1bdc7493d4caf418664d8af7 Mon Sep 17 00:00:00 2001 From: graemeg Date: Fri, 11 Jul 2008 13:59:56 +0000 Subject: Applied mousevents patch from Vladimir. --- src/corelib/x11/gfx_x11.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/corelib/x11') diff --git a/src/corelib/x11/gfx_x11.pas b/src/corelib/x11/gfx_x11.pas index d485762c..c62413f3 100644 --- a/src/corelib/x11/gfx_x11.pas +++ b/src/corelib/x11/gfx_x11.pas @@ -1609,7 +1609,8 @@ procedure TfpgWindowImpl.CaptureMouse; begin XGrabPointer(xapplication.Display, FWinHandle, TBool(False), - ButtonPressMask or ButtonReleaseMask or ButtonMotionMask or PointerMotionMask, + ButtonPressMask or ButtonReleaseMask or ButtonMotionMask or PointerMotionMask + or EnterWindowMask or LeaveWindowMask, GrabModeAsync, GrabModeAsync, None, -- cgit v1.2.3-70-g09d2