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 126874 - New windows get focus in pointer-root mode
New windows get focus in pointer-root mode
Status: RESOLVED DUPLICATE of bug 116164
Product: metacity
Classification: Other
Component: general
2.6.x
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2003-11-13 06:12 UTC by Keith Packard
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Keith Packard 2003-11-13 06:12:30 UTC
Pointer root mode should leave focus where the pointer is, even for new
windows.

Index: window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.303
diff -u -r1.303 window.c
--- window.c    8 Nov 2003 17:25:49 -0000       1.303
+++ window.c    13 Nov 2003 05:41:47 -0000
@@ -1652,7 +1652,7 @@
         }
     }
 
-  if (did_placement)
+  if (did_placement && meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK)
     {
       if (window->xtransient_for != None)
         {
Comment 1 Havoc Pennington 2003-11-13 13:24:18 UTC
I swear you already filed this ;-)
Comment 2 Keith Packard 2003-11-13 18:35:30 UTC
I probably did, but I note that my version of the code still contains
a diff here...
Comment 3 Rob Adams 2003-11-16 04:02:24 UTC

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