feature idea: prevent apps from stealing the focus
Brian J. Tarricone
bjt23 at cornell.edu
Thu Feb 19 23:32:54 CET 2004
On Thu, 19 Feb 2004, Olivier Fourdan wrote:
> Nothing can prevent an app from changing focus (XSetInputFocus() can be
> called from any app).
>
> The WM could try to revert the change, but that's a bit like a hack. I
> can imagine that an app calling XSetInputFocus() does that for good
> reasons.
tho i'm not 100% sure, i think he's mainly talking about new windows
(dialogs, whatever) popping up and stealing focus, simply because new
windows are set to receive the focus. (tom, this is actually
configurable: window manager preferences->keyboard and
focus->automatically give focus to newly created windows).
what i personally would like to see is for xfwm to be smarter about it.
by default, give new windows focus. but as an exception, if i'm typing
something (i.e., there's been a keypress event within the last x
milliseconds), don't give the new window focus, and don't raise it to
the top of the stack. iirc, metacity does this, which was inspired by
(i hate to say it) windows xp.
-brian
More information about the Xfce
mailing list