Only send WM_TAKE_FOCUS when the client supports it in the protocols atom
Fixes opening xterm, for example
This commit is contained in:
@ -39,6 +39,12 @@ void x_reinit(Con *con);
|
||||
*/
|
||||
void x_con_kill(Con *con);
|
||||
|
||||
/**
|
||||
* Returns true if the client supports the given protocol atom (like WM_DELETE_WINDOW)
|
||||
*
|
||||
*/
|
||||
bool window_supports_protocol(xcb_window_t window, xcb_atom_t atom);
|
||||
|
||||
/**
|
||||
* Kills the given X11 window using WM_DELETE_WINDOW (if supported).
|
||||
*
|
||||
|
Reference in New Issue
Block a user