pop up windows
Steven J Abner
pheonix.sja at att.net
Sun Feb 16 23:57:30 UTC 2025
Ready to have your minds blown!
I've created another demo. Had to prove to myself that once and for
all my conclusions. You're not going to believe me, but on my system
XGrabPointer() works but XUngrabPointer() doesn't. You must use
xcb_ungrab_pointer() to ungrab. However I do use XUngrabPointer() in
another code along with focus stuff and have released grab.
This demo was only a window that just grabs pointer and ungrabs it. On
button press, grab pointer, on next button press ungrab.
Be warned, had to reboot when using XUngrabPointer(). It is commented
out in favor of working xcb_ungrab_pointer().
KaBoooom
Steve
gcc -ansi -pedantic -Wall -Wno-unknown-pragmas -g -o xgrab xgrab.c
-lxcb -lX11 -lX11-xcb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xgrab.c
Type: text/x-csrc
Size: 17313 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/xcb/attachments/20250216/b81a7eca/attachment.c>
More information about the Xcb
mailing list