Re: focus events question
Steven J Abner <[email protected]> Tue, 11 Feb 2025 14:31:38 -0500
| Newsgroups | gmane.comp.freedesktop.xcb |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Feb 11 2025 at 04:14:44 PM +0000, Uli Schlachter <[email protected]> wrote: > GrabButton or GrabKeyboard request Thank you. Before this question didn't know these existed. Kinda makes a little more sense now. But... On same subject, workaround still works great but still fighting getting 2 managers to agree on behavior. Using the combo for popup, a transient window: xcb_map_window(); xcb_set_input_focus(); xcb_grab_pointer(); I've gotten it to behave nearly what I need except WM1 does not send the parent as a 'background' type window, such that it can resize/move rather than 'focus out' window. Not what expected, still look for trial and error solution. WM2 sends parent as 'background' but has the problem of 'root' or the desktop not creating an event of "selection" like a button press or focus out, so can't terminate outside of window except for selecting other windows. So WM1 works except on window decorations of parent, WM2 works except on desktop clicked. Any functions are fair game, since I clearly don't know them all. Or suggestions where to look, as web/mailing list didn't show anything the multiple ways I queried. Even tell me if my approach is off. Attempted _NET_WM_WINDOW_TYPE, WM_TAKE_FOCUS with no luck. Even a combo of other adding on functions? like using grabbutton with grabpointer? Thanks again for previous answer! Steve