]> git.sur5r.net Git - i3/i3/commit
Support _NET_WM_STATE_FOCUSED 3178/head
authorTony Crisci <tony@dubstepdish.com>
Mon, 25 Jul 2016 00:43:56 +0000 (20:43 -0400)
committerOrestis Floros <orestisf1993@gmail.com>
Fri, 23 Mar 2018 12:30:57 +0000 (14:30 +0200)
commitc42de09b1b0b0bcf96342d662f4bef3011b8ce5d
tree6b339d30d60a183eba27806c563df8af9c49c2c6
parent9cd4b5323180d97ca68e5d7ff7772ccf2789e334
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
include/atoms_NET_SUPPORTED.xmacro
include/ewmh.h
src/ewmh.c
src/x.c
testcases/lib/i3test.pm.in
testcases/t/158-wm_take_focus.t
testcases/t/295-net-wm-state-focused.t [new file with mode: 0644]