pop up windows

Steven J Abner pheonix.sja at att.net
Thu Feb 13 19:37:05 UTC 2025


 Hoping xcb can help. I am attaching demo file to clarify. I broke down 
original as much as I could with minimalist debug code. Can send more 
if needed.
 I don't have a LFS system to test on, but my guess it will work like 
it should. The 2 systems tested on have the WM of 'GNOME Shell' and 
'Compiz'.
 GNOME Shell will not focus out nor provide info on 'root' window to 
unmap or destroy pop up. Compiz on parent of transient does get focus 
out signal but only half way does it, visually provides a partial 
background look, but doesn't background. You can still move or resize 
while popup is foreground.
 I've tried both ICCCM and EWM suggestions and in multiple 
combinations, even silly stuff like setting parent to override-redirect 
when popup is mapped.
 Thing I haven't tried are using wmctrl to get PID, to get FD for 
interception of WMs.
 My hope is looking at demo, someone can spot what I'm doing wrong.
 Please, please look. Without this working I can't do combo buttons, 
menus, context menus, etc. Found older code of a tutorial that had this 
problem. Really looks silly moving window with menus off on their own. 
They should disappear when button pressed on title bar. GNOME Shell 
gets that right, where Compiz gets root window right.
 Steve

gcc -ansi -pedantic -Wall -Wno-unknown-pragmas -g -o xpop xpop.c -lxcb 
&& gdb xpop

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xpop.c
Type: text/x-csrc
Size: 15985 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/xcb/attachments/20250213/8c4a96bb/attachment.c>


More information about the Xcb mailing list