Support _NET_WM_STATE_FOCUSED
_NET_WM_STATE_FOCUSED is set on _NET_WM_STATE to indicate that the window is focused. It must be set when the window is newly focused and removed once the window no longer has focus. > _NET_WM_STATE_FOCUSED indicates whether the window's decorations are > drawn in an active state. Clients MUST regard it as a read-only hint. > It cannot be set at map time or changed via a _NET_WM_STATE client > message. For example, this is used by GTK applications to show the decoration in an active or inactive state. This change can be tested by opening a GTK application (like evince), focusing the window and unfocusing the window, and observing a change in the window decorations. Fixes #2273
This commit is contained in:
committed by
Orestis Floros
parent
9cd4b53231
commit
c42de09b1b
@ -83,6 +83,12 @@ void ewmh_update_client_list_stacking(xcb_window_t *stack, int num_windows);
|
||||
*/
|
||||
void ewmh_update_sticky(xcb_window_t window, bool sticky);
|
||||
|
||||
/**
|
||||
* Set or remove _NEW_WM_STATE_FOCUSED on the window.
|
||||
*
|
||||
*/
|
||||
void ewmh_update_focused(xcb_window_t window, bool is_focused);
|
||||
|
||||
/**
|
||||
* Set up the EWMH hints on the root window.
|
||||
*
|
||||
|
Reference in New Issue
Block a user