After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 165041 - New windows unexpectedly grab keyboard focus
New windows unexpectedly grab keyboard focus
Status: RESOLVED DUPLICATE of bug 118372
Product: metacity
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2005-01-24 01:21 UTC by Christopher Beland
Modified: 2005-01-24 01:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christopher Beland 2005-01-24 01:21:00 UTC
So I'm running metacity with a fresh install of Fedora Core 3.  I have
repeatedly been annoyed when I am in the middle of typing something,
and an application I have been waiting to start springs open and
steals the keyboard focus.  This causes the text I'm in the middle of
typing to be unexpectedly spread across multiple windows.  This is
especially bad if I'm in the middle of typing a password, but mostly
it's mostly a minor annoyance that sometimes causes incorrect
operation when a certain application gets keyboard input I don't
intend for it.

The metacity philosophy is to favor Doing The Right Thing over adding
preferences whenever possible.  The downside to changing the current
behavior (new windows do not grab focus) is that many users may assume
that the application they have just started, when it is done loading,
will be ready and willing to accept keyboard input without delay.

I don't know how technically feasible it would be to only change focus
to a new window if the window that currently has focus has not gotten
keyboard input for a certain period of time (a second or two)?  I also
don't know how well that would work in practice.  So maybe a
preference is desirable.  Or maybe I just need to get used to halting
keyboard input faster when new windows appear.  I guess it depends
what problems, if any, other people have in using the interface over
the long term, and why.  Thanks for reading.
Comment 1 Elijah Newren 2005-01-24 01:46:35 UTC
Technically, you can enable this with a one-line patch to the Metacity sources
with the version of Metacity in Fedora Core 3.  However, the support for this
wasn't up-to-par and was therefore disabled; this means that you might run
across some annoyances if you try it.  (See the patch in comment 46 of bug
149028 if you're adventurous and want to give it a try).  Otherwise, you'll have
to wait for FC 4.

*** This bug has been marked as a duplicate of 118372 ***