summaryrefslogtreecommitdiff
path: root/src/corelib/x11
diff options
context:
space:
mode:
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,