Comment 30 for bug 735205

Revision history for this message
MichaƂ Sawicz (saviq) wrote :

Okay, so... if I understand what you mean, that's what you did:

Index: metacity-2.34.1/src/core/window.c
===================================================================
--- metacity-2.34.1.orig/src/core/window.c 2011-09-13 12:37:46.240667605 +0200
+++ metacity-2.34.1/src/core/window.c 2011-09-13 12:39:41.850668035 +0200
@@ -3043,7 +3043,7 @@
    * honor 0 timestamps for pagers.
    */
   can_ignore_outdated_timestamps =
- (timestamp != 0 || (FALSE && source_indication != META_CLIENT_TYPE_PAGER));
+ (FALSE && source_indication != META_CLIENT_TYPE_PAGER);
   if (XSERVER_TIME_IS_BEFORE (timestamp, window->display->last_user_time) &&
       can_ignore_outdated_timestamps)
     {

That does solve the "urgent instead of switch after alt+tab" issue, but for me it doesn't solve the more important one - window gets raised but doesn't get focus.

After that change the behavior is:

post-3. firefox is raised, but focus remains with terminal
post-4. only now you get switched to firefox
post-5. then works as expected

It does solve the Alt+Tab for chromium, 'cause the chromium window already holds focus and is active. Try executing `chromium-browser http://google.pl/` in a terminal to see what I mean.