[xmonad] [patch] EwmhDesktops: make setActiveWindow set _NET_WM_STATE for gtk-3.4
Joachim Breitner
nomeata at debian.org
Sat Jun 2 19:37:03 CEST 2012
Hi,
Am Mittwoch, den 21.03.2012, 20:11 -0400 schrieb Brandon Allbery:
> On Wed, Mar 21, 2012 at 19:49, Gwern Branwen <gwern0 at gmail.com> wrote:
> Does anyone have any thoughts on this?
>
>
> Technically we should also be setting _NET_WM_STATE_FOCUSED for
> focused windows and removing that atom when the windowe loses focus
> (this is a recent revision to EWMH; it didn't exist when EWMHDesktops
> was originally written). It would be interesting to see if doing so
> fixes any of the other occasional odd behaviors that get reported.
I tested this here, and just ensuring that _NET_WM_STATE exists did not
seem to make a difference. The proper solution, as I gather from reading
the mutter source, seems to be
* Include _NET_WM_STATE_FOCUSED in _NET_SUPPORTED
* For the active window, edit the list _NET_WM_STATE and include
_NET_WM_STATE_FOCUSED (just appending will keep enlarging the list)
* For other windows, remove it from the list.
Greetings,
Joachim
--
Joachim "nomeata" Breitner
Debian Developer
nomeata at debian.org | ICQ# 74513189 | GPG-Keyid: 4743206C
JID: nomeata at joachim-breitner.de | http://people.debian.org/~nomeata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20120602/9cc9a457/attachment.pgp>
More information about the xmonad
mailing list