Re: Add _NET_WM_STATE_FOCUSED to _NET_WM_STATE

Rui Tiago Cação Matos <[email protected]> Thu, 27 Oct 2011 14:47:53 +0100
Newsgroups gmane.comp.gnome.wm-spec
Message-ID <CACkMB-mWC-f6w9eRP6JVdAY5L3UUyO7o5br-rEadaY-FGCP+yQ@mail.gmail.com>
Hi, thanks for questions.

On 27 October 2011 11:32, Giles Atkinson <[email protected]> wrote:
> Please give a more detailed explanation of the reason for this.  I do not see anything significant in the picture [1].

We'd like to style gtk+ applications differently depending on the
window being presented by the WM as focused or not. You can see on the
mockup that the unfocused window has different colors on its widgets,
not only on the window decorations.

But clients can do whatever they want with this information of course.

> And why would you ever want windows to appear to have focus unless they really do?

That's because of grabs. The WM grabs the keyboard when you drag the
window which causes a FocusOut event on the client for that window. In
this case we don't want the window to look "unfocused" because it's
not what the user expects and would mismatch how the WM is drawing the
decorations.

Rui
_______________________________________________
wm-spec-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/wm-spec-list