On Oneiric, Unity 3D leaves focus on previous viewport when switching viewports via the Compiz Expo plugin

Bug #884005 reported by Doug Morse
80
This bug affects 14 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi,

The problem:

I have Expo view mapped to my middle mouse button. Ever since upgrading from Natty to Oneric, whenever I switch viewports by pressing the middle button to invoke Expo view, clicking on a different viewport, and then pressing the middle button again to exit Expo view, the mouse focus is remains on the most recently focused window in the previous viewport.

Consequences of the problem:

This is terribly frustrating in that, because I use the keyboard heavily and much more than the mouse, I'm constantly switching viewports (with the mouse) and then start typing again, only to have my keyboard input going to not only the wrong application, but the wrong viewport, where I cannot even see it. As you can imagine, I have occasionally had some pretty undesirable results due to my keyboard input being directed to the wrong window (e.g., intending to copy and paste between windows residing in different viewports and having my keystrokes, after switching viewports, replacing the source of the copy operation because the mouse focus was on the wrong window/viewport).

Expected behavior:

When switching viewports, no matter the method, the window at the top of the Z-order for that viewport should get the mouse focus, just as it did in Natty, 10.x, and 9.x.

As always, thanks for all you do!

Cheers,
Doug

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: unity 4.24.0-0ubuntu2b1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,commands,vpswitch,snap,place,shift,obs,imgpng,resize,move,regex,unitymtgrabhandles,mousepoll,gnomecompat,grid,session,animation,wall,expo,fade,ezoom,workarounds,scale,unityshell]
Date: Sun Oct 30 17:05:25 2011
DistroCodename: oneiric
DistroVariant: ubuntu
DkmsStatus:
 fglrx, 8.881, 3.0.0-12-generic, x86_64: installed
 vboxhost, 4.1.4, 3.0.0-12-generic, x86_64: installed
GraphicsCard:
 ATI Technologies Inc Redwood [Radeon HD 5670] [1002:68d8] (prog-if 00 [VGA controller])
   Subsystem: PC Partner Limited Device [174b:e166]
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
JockeyStatus:
 xorg:fglrx_updates - ATI/AMD proprietary FGLRX graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
 xorg:fglrx - ATI/AMD proprietary FGLRX graphics driver (Proprietary, Enabled, In use)
MachineType: Gigabyte Technology Co., Ltd. GA-870A-UD3
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic root=UUID=e4159835-99a4-436a-8b01-6298ba2dfe6c ro quiet splash vt.handoff=7
SourcePackage: unity
UpgradeStatus: Upgraded to oneiric on 2011-10-14 (16 days ago)
XorgConf: Error: [Errno 13] Permission denied: '/etc/X11/xorg.conf'
dmi.bios.date: 03/09/2011
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: FD
dmi.board.name: GA-870A-UD3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrFD:bd03/09/2011:svnGigabyteTechnologyCo.,Ltd.:pnGA-870A-UD3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-870A-UD3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-870A-UD3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
version.compiz: compiz 1:0.9.6+bzr20110929-0ubuntu5
version.fglrx-installer: fglrx-installer N/A
version.ia32-libs: ia32-libs 20090808ubuntu26
version.libdrm2: libdrm2 2.4.26-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 7.11-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11-0ubuntu3
version.xserver-xorg: xserver-xorg 1:7.6+7ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.0-1ubuntu13
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20110811.g93fc084-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.901-1ubuntu2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110411+8378443-1

Revision history for this message
Doug Morse (dm-dougmorse) wrote :
affects: unity (Ubuntu) → compiz (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in compiz (Ubuntu):
status: New → Confirmed
Revision history for this message
alcor (alcor-walter) wrote :

This also happen with Oneiric fresh install. I Experience this on all my 4 computers install.

The behaviour is strange and really anoying :
open 2 gedit on 2 different viewports : gedit 1 in viewport 1 (1) and gedit 2 in viewport 2 (2)
- go to (1) and set focus by clicking the gedit 1 window.
- hit key 'a'. this print 'a' in gedit 1. (that's ok)
- switch to (2) with expo shortcut (Win+S and right click on viewport - no more click)
- hit key 'b'. this doesn't print 'b' in gedit 2 (strange)
- switch to (1) - notice 'ab' in gedit 1 (you realize that gedit 1 had focus when hitting 'b' on viewport 2)
- hit key 'c' - this doesn't print 'c' in gedit 1 (strange, gedit 1 has lost focus but you are on viewport 1)
- switch to (2) - notice 'c' in gedit 2 ! (gedit 2 had focus when hitting 'c' on viewport 1)
etc ... the bug sets a delayed focus to window when switching with Expo.

I tried to change compiz config manager > general > Focus ... > sensibility : without success.

summary: - After upgrading to Oneiric, Unity leaves focus on previous viewport when
- switching viewports via the Compiz Expo plugin
+ Unity 3D leaves focus on previous viewport when switching viewports via
+ the Compiz Expo plugin
summary: - Unity 3D leaves focus on previous viewport when switching viewports via
- the Compiz Expo plugin
+ On Oneiric, Unity 3D leaves focus on previous viewport when switching
+ viewports via the Compiz Expo plugin
Revision history for this message
Stropa (sakayas) wrote :

Having the same problem....

focus stays on previous window/workspace until i click on the window i was to use...

tried editing gedit settings and compiz - focus - even tried gnome-tweak-tool > window - all options - nothings working...

really annoying..

im not using unity

but gnome-shell with compiz/awn

Revision history for this message
Smotko (smotko) wrote :

I too am having the same problem. It is really annoying and I hope it gets fixed!

Cheers

Revision history for this message
dino99 (9d9) wrote :

That version has reached EOL since a while, so it will not receive update. If that issue still exist, report again using ubuntu-bug.

Changed in compiz (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.