|
I have a shaped GTK window which follows the cursor around the screen. (This is because the OS cursor is not always sent reliably across VNC.) I am using PyGTK on linux. My problem is that events, such as mouse button clicks, are being captured by my window, instead of going to whatever window is under the cursor. To get the global cursor position, instead of a position relative to my window, I am using gtk.gdk.pointer_grab(), so I guess this is why the events are getting consumed by my window.
Is there a way to pass the events back to the operating system for processing by other windows?
Or alternatively, is there a different way to get the global, screen cursor coordinates. I have tried getting window relative coordinates and adding them to the window's screen position, but this only works if the user moves the cursor slowly. If it moves quickly outside the window, within one refresh frame, the 'grabbing' is lost.
|