Re: [dev] [dwm] [patch] USPosition, USSize

From: Connor Lane Smith <cls_AT_lubutu.com>
Date: Tue, 9 Aug 2011 20:56:06 +0100

On 9 August 2011 20:41, Rob <robpilling_AT_gmail.com> wrote:
> Since there's a few opinions on this, how about we make a dwm "focus"
> page? The NetActiveWindow hint is not one of the better ideas in the
> history of X11, it really got my goat when windows started stealing
> focus while I'm trying to type elsewhere.

I was planning to make a new thread about this, but since you've
brought it up...

dwm handles _NET_ACTIVE_WINDOW messages by switching focus to the
given client, and if it was invisible dwm switches to view every tag
with which the client is tagged. This really does not work with dwm's
tagging model, and the switch can be very disorienting, where suddenly
all those tags windows fill the screen. It's the workspace approach,
and it's completely broken.

(dwm ignores FocusIn events for this very reason, but doesn't seem to
apply the same logic to EWMH.)

By the EWMH standard, dwm is *not* required to honour these messages,
and can in fact ignore them completely. My suggestion is that dwm
should treat the message as an "urgency" switch, not switching focus
and certainly not switching tags.

(A side note: dwm's support for _NET_WM_STATE is slightly flawed: it
only checks the message's data.l[1] field for the fullscreen atom,
whereas it should check both data.l[1] and data.l[2].)

These are the only outright bugs in dwm's EWMH support that I've
discovered so far.

Thanks,
cls
Received on Tue Aug 09 2011 - 21:56:06 CEST

This archive was generated by hypermail 2.2.0 : Tue Aug 09 2011 - 22:00:06 CEST