Keyboard shortcuts does not work when last window is closed because Desktop does not get focus automatically.

Bug #1090379 reported by Mohammad Gufran
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Compiz
New
Undecided
Unassigned
compiz (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When I close the last active window the desktop does not get focus automatically, this prevent the keyboard shortcuts to work because apparently the last window I close or minimize is still in focus according to the title bar, which still says the title of the window that has been closed/minimized.
For a proper example if I have google-chrome open and I am working with terminal the title bar says "Terminal", when I close or minimize the terminal window it is supposed to automatically focus the next window on desktop stack that is google-chrome but this is not the case, title bar still remains the same "Terminal" until I manually click on the google-chrome window.
Same happens when there is no more window left on the desktop, and after closing the last window it does not capture the keys. Any keyboard shortcuts does not works at all except "Super", "Super+other_keys" and "Alt" (for HUD). I cannot use "Ctrl+alt+T", "Alt+f2", F12 (for Guake terminal) or any other key combination, for getting the desktop back to the focus either I have to press "Super" or "Alt" key or bring up the dash from launcher and then close.
So far the problem appears to be the "Window Focusing" which is not carried out properly but I am not sure !

My system details:

Description: Ubuntu 12.10
Release: 12.10
compiz:
  Installed: 1:0.9.8.4+bzr3412-0ubuntu0.1
  Candidate: 1:0.9.8.4+bzr3412-0ubuntu0.1

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: compiz-core 1:0.9.8.4+bzr3412-0ubuntu0.1
ProcVersionSignature: Ubuntu 3.5.0-19.30-generic 3.5.7
Uname: Linux 3.5.0-19-generic x86_64
NonfreeKernelModules: fglrx
.tmp.unity.support.test.0:

ApportVersion: 2.6.1-0ubuntu9
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
Date: Fri Dec 14 19:25:04 2012
DistUpgraded: Fresh install
DistroCodename: quantal
DistroVariant: ubuntu
ExecutablePath: /usr/bin/compiz
GraphicsCard:
 Advanced Micro Devices [AMD] nee ATI Thames XT/GL [Radeon HD 7600M Series] [1002:6840] (prog-if 00 [VGA controller])
   Subsystem: Toshiba America Info Systems Device [1179:fb22]
InstallationDate: Installed on 2012-10-09 (65 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Beta amd64 (20120926)
MachineType: TOSHIBA Satellite L850
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_IN:en
 PATH=(custom, user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_IN
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.5.0-19-generic root=UUID=42ffb084-dff4-47a3-8577-ff07903004db ro quiet splash vt.handoff=7
SourcePackage: compiz
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/11/2012
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: 1.80
dmi.board.name: Portable PC
dmi.board.vendor: TOSHIBA
dmi.board.version: MP
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: OEM Chassis Manufacturer
dmi.chassis.version: OEM Chassis Version
dmi.modalias: dmi:bvnInsydeCorp.:bvr1.80:bd07/11/2012:svnTOSHIBA:pnSatelliteL850:pvrPSKACG-03400W:rvnTOSHIBA:rnPortablePC:rvrMP:cvnOEMChassisManufacturer:ct10:cvrOEMChassisVersion:
dmi.product.name: Satellite L850
dmi.product.version: PSKACG-03400W
dmi.sys.vendor: TOSHIBA
version.compiz: compiz 1:0.9.8.4+bzr3412-0ubuntu0.1
version.fglrx-installer: fglrx-installer N/A
version.ia32-libs: ia32-libs 20090808ubuntu36
version.libdrm2: libdrm2 2.4.39-0ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 9.0-0ubuntu1
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 9.0-0ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.13.0-0ubuntu6.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.3-0ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.99.99~git20120913.8637f772-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.20.9-0ubuntu2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.2-0ubuntu3

Revision history for this message
Mohammad Gufran (dogabhai) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds related to bug 998911 but possibly different.

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
Nate Cornell (nathandcornell) wrote :

I can confirm this behaviour as stated above.
The previously closed window's title remains in the Unity panel, and almost all keyboard shortcuts are disabled until I tap the super key a couple times.

Changed in compiz (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
cccccccc (cccccccc) wrote :

I can confirm this, too. No hotkey working until I click on desktop or window with mouse...

Revision history for this message
TomasHnyk (sup) wrote :

Is this still reproducible? I cannot reproduce it on 15.10.

Revision history for this message
adam (anonymous-temp-mail) wrote :

Seems not fixed yet or another regression.

I'm using compiz 0.9.12.2
Although it's not with Unity, but Mate and Xfce4, all reproduciable.

Thanks

Revision history for this message
Matthias Laumer (matthias-laumer) wrote :

Can be confirmed with Ubuntu 16.04 (Unity) as well.

But for me it was related to "conky". Seems like that after closing last Window, conky (which is installed and active) get the focus.
Problem solved with ccsm (Window-management / Window Rules) added "class=Conky" to field "No Focus". After adding this the problem was solved.

Revision history for this message
adam (anonymous-temp-mail) wrote :

Yes, I'm also using conky.

Sounds pretty the cause.

I'll try it soon.

Thanks.

Revision history for this message
Matthias Laumer (matthias-laumer) wrote :

Noted, that mentioned solution in #8 reduces the problems but not eliminates it.
You can also install the "unity-tweak-tool" and go to "Window/Additionals" and activate "follow Mouse" or "sloppy" for focus.

This is another improvement I think because Desktop is automatically "selected" / got focus only if the mouse is on it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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