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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/735205

Title:
  [window management] Alt tab does not switch to the desired application
  but instead set the urgency flag on the window

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-2d/+bug/735205/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to