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 536769 - strange alt-tab bug
strange alt-tab bug
Status: RESOLVED DUPLICATE of bug 535887
Product: metacity
Classification: Other
Component: Focus
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: Thomas Thurman
Thomas Thurman
Depends on:
Blocks:
 
 
Reported: 2008-06-05 09:39 UTC by Sam Morris
Modified: 2010-03-19 12:19 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Sam Morris 2008-06-05 09:39:28 UTC
Metacity sometimes goes into a strange mode where it will take two presses of alt+tab to change focus to another window. Pressing it once activates alt+tab mode, but does not shift the focus away from the current window.
Comment 1 Thomas Thurman 2008-06-05 13:14:53 UTC
Is there a reliable way to reproduce this?
Comment 2 Sam Morris 2008-06-05 13:21:38 UTC
Unfortunately not. It just kind of happens, occasionally, until I kill metacity.
Comment 3 Sam Morris 2008-06-17 17:48:45 UTC
This has just struck me again--can I get any kind of info out of metacity as to WTF is going on?
Comment 4 Sam Morris 2008-06-17 18:06:30 UTC
I can reproduce the bug!

 1. Put some images in a directory
 2. Run xterm
 3. In the xterm, run xwininfo
 4. When the mouse pointer turns into a cross, click the xterm window
 5. Make a note of the window id (looks like '0x2c00024').
 6. Run this command: while true; do xscreensaver-getimage $window_id ; sleep 1; done
 7. Switch to another workspace with a few windows on it
 8. Wait for the xterm window to go into urgent state (that is, it appears in the window list as bold and flashing blue)
 9. Now press alt+tab once. Instead of switching windows, you switch to the currently-focused window. Pressing it twice switches to another window.

Phew!

BTW I'm using metacity 2.22.0 from Debian. We don't patch the code other than to link with -Wl,as-needed.
Comment 5 Sam Morris 2008-06-17 18:10:34 UTC
Oh, you have to make sure you have the following in ~/.xscreensaver first:

imageDirectory:	/path/to/pictures/directory
chooseRandomImages: True
Comment 6 Matt Kraai 2009-02-06 05:21:25 UTC
This sounds like a duplicate of bug 535887.
Comment 7 Owen Taylor 2009-11-18 20:13:02 UTC
*** Bug 587921 has been marked as a duplicate of this bug. ***
Comment 8 Sam Morris 2010-03-19 12:19:07 UTC

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