← Back to team overview

compiz team mailing list archive

[Bug 600201] [NEW] focus prevention does not set sensible window order (alt+tab) for static application switcher

 

Public bug reported:

Binary package hint: compiz

I have following config in CompizConfig Settings Manager (ccsm):

General Options: Focus Prevention Level: Normal
Static Application switcher (enabled): Next Window: <Alt>Tab

Steps to reproduce:

1) Open Firefox (wait for the window to open)
2) Open Terminal
3) Start command "gcalctool" (Gnome calculator) from Terminal
4) Press ALT+TAB

Expected results:
The Gnome calculator should receive the focus (it looks like it's on top but does not have focus because focus prevention denied the focus)

Actual results:
Firefox gets the focus because it was focused before the Terminal. Hitting ALT+TAB multiple times (keeping ALT down) switches through windows in Static Application Switcher. Notice that gcalctool (Gnome calculator) is the LAST window in the list (this is obvious if you have multiple windows open before starting the steps to reproduce).

Suggested fix:
As the focus prevention should only prevent the focus, it makes sense to put the window asking for the focus as the second in the window list so that using ALT+TAB once hits the new focus target.

Additional info:
It would make sense to match ALT+TAB to window z-order (windows nearest to the top would get the focus next if ALT+TAB is pressed repeatedly). This would make sense from the user's point of view. This is the result if I only visit each window using ALT+TAB only and never touch the mouse (except for this bug, of course, the order is messed up if focus prevention ever hits).

$ lsb_release -rd
Description:	Ubuntu 10.04 LTS
Release:	10.04

$ apt-cache policy compiz
compiz:
  Installed: 1:0.8.4-0ubuntu15.1
  Candidate: 1:0.8.4-0ubuntu15.1
  Version table:
 *** 1:0.8.4-0ubuntu15.1 0
        100 /var/lib/dpkg/status
     1:0.8.4-0ubuntu15 0
        500 http://ftp.sunet.se/pub/os/Linux/distributions/ubuntu/ubuntu/ lucid/main Packages

** Affects: compiz (Ubuntu)
     Importance: Undecided
         Status: New

-- 
focus prevention does not set sensible window order (alt+tab) for static application switcher
https://bugs.launchpad.net/bugs/600201
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in ubuntu.



Follow ups

References