xwm: Set _NET_WM_STATE_FOCUSED property for the focused surface

Certain clients require this property to be set for expected behavior.
Most notably, steam client CSD maximize button no longer worked
after unmaximizing once, unless the state was changed by another
method. The state is unset whenever another surface gains focus.
This commit is contained in:
Scott Moreau 2020-07-27 05:41:54 -06:00 committed by Simon Ser
parent 1ae2d976c0
commit 6d0ee53e1a
2 changed files with 26 additions and 8 deletions

View file

@ -40,6 +40,7 @@ enum atom_name {
NET_ACTIVE_WINDOW,
NET_WM_MOVERESIZE,
NET_SUPPORTING_WM_CHECK,
NET_WM_STATE_FOCUSED,
NET_WM_STATE_MODAL,
NET_WM_STATE_FULLSCREEN,
NET_WM_STATE_MAXIMIZED_VERT,