Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Linux/X11 (and Mac OS X) equivalent to Win API SetCapture() function?

On Windows you can "capture" the mouse to continue receiving mouse events even when it goes outside the window's client area. Here the SetCapture() documentation: http://msdn.microsoft.com/en-us/library/ms646262(VS.85).aspx

I would like to know what is the equivalent function in Linux (X11) and Mac OS X (Cocoa).

like image 743
dacap Avatar asked Aug 02 '10 01:08

dacap


1 Answers

For X: XGrabPointer()

like image 54
alanc Avatar answered Sep 21 '22 13:09

alanc