LWN.net Logo

LCA: Two talks on the state of X

LCA: Two talks on the state of X

Posted Feb 9, 2008 1:19 UTC (Sat) by njs (subscriber, #40338)
In reply to: LCA: Two talks on the state of X by tjc
Parent article: LCA: Two talks on the state of X

> are there any plans to allow window managers to intercept client requests to raise
themselves?

Window managers have always had that capability -- in fact, the *only* thing a client can do
is ask the window manager to raise it; the window manager is the only app capable of actually
issuing the raise operation on the server.  You may want to take this up with the authors of
your window manager, or of firefox.

Focus-stealing is another issue -- any client can assign keyboard focus to any window at any
moment, and the most a window manager can do is notice that it has happened and set it back
again, possibly after some keystrokes have been lost.  It'd be nice if this could be disabled,
but it's not clear it can be, given the quirks of X's focus API.  (Modern apps use a very
small subset of X's traditional focus model, but then there are the legacy apps...)


(Log in to post comments)

LCA: Two talks on the state of X

Posted Feb 9, 2008 20:39 UTC (Sat) by tjc (subscriber, #137) [Link]

Thanks for the information.  It seems clear that I have been mistaking window raising for
focus stealing.

When a client steals the focus, is the window manager notified, or does it have to keep
polling to notice this?

LCA: Two talks on the state of X

Posted Feb 9, 2008 22:20 UTC (Sat) by njs (subscriber, #40338) [Link]

> When a client steals the focus, is the window manager notified, or does it have to keep
polling to notice this?

It is notified.

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds