summaryrefslogtreecommitdiff
path: root/src/corelib/x11
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-07-11 13:59:56 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-07-11 13:59:56 +0000
commit9aa35c9c0a5220af1bdc7493d4caf418664d8af7 (patch)
treea3e68f4cc6b5e354f120a979a1a98e7fb8f00b62 /src/corelib/x11
parentba6dd3be462fac8b944ecf436be4f70ce33e5cb8 (diff)
downloadfpGUI-9aa35c9c0a5220af1bdc7493d4caf418664d8af7.tar.xz
Applied mousevents patch from Vladimir.
Diffstat (limited to 'src/corelib/x11')
-rw-r--r--src/corelib/x11/gfx_x11.pas3
1 files changed, 2 insertions, 1 deletions
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,