closing/minimizing window incorrectly raises another window

Bug #889522 reported by chenel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
New
Low
Unassigned

Bug Description

This has to be a duplicate of another bug already reported, but I couldn't find one that addresses the situation after an hour of searching.

In Oneiric, I find that the focus-and-raise window behavior under Unity 3D (I have version 4.24.0-0ubuntu2b1) has some issues, particularly when minimizing/closing a window that lies on top of another one. It seems that the window that is immediately below the one I am dismissing is automatically raised to the front, even if there is another window that is in front of it.

For example:
 (1) Begin with windows arranged as I have shown in attached screenshot "allopen1.png".
 (2) Minimize the Pidgin window. The result is shown in attached screenshot "pidginmin1.png".
 Notice that the Firefox window that was immediately below the Pidgin window was raised, even though there was a Gedit window open on top of it (but not overlapping with Pidgin) to the right. I would expect that the Gedit window should still stay on top.

Another example:
 (1) Begin with windows arranged as shown in "allopen2.png".
 (2) Now minimize the Gedit window. Result is in "geditmin2.png".
 This time BOTH the "underneath" windows are raised (?!). Instead, I'd expect that the Gedit window should be minimized, and nothing further should happen.

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 i686
.tmp.unity.support.test.0:

ApportVersion: 1.23-0ubuntu4
Architecture: i386
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,grid,regex,imgpng,vpswitch,gnomecompat,move,unitymtgrabhandles,place,resize,mousepoll,snap,animation,wall,session,expo,workarounds,fade,scale,ezoom,unityshell,opacify]
CompositorRunning: compiz
Date: Sat Nov 12 10:29:34 2011
DistUpgraded: Log time: 2011-10-22 09:10:55.768126
DistroCodename: oneiric
DistroVariant: ubuntu
DkmsStatus: tp-smapi, 0.41, 2.6.38-11-generic, i686: installed
GraphicsCard:
 Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) [8086:2a02] (rev 0c) (prog-if 00 [VGA controller])
   Subsystem: Lenovo T61 [17aa:20b5]
   Subsystem: Lenovo T61 [17aa:20b5]
MachineType: LENOVO 8932CTO
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: root=UUID=e6981418-61da-4b2c-9515-5a738d8b3805 ro quiet splash
SourcePackage: unity
UpgradeStatus: Upgraded to oneiric on 2011-10-22 (20 days ago)
dmi.bios.date: 05/08/2008
dmi.bios.vendor: LENOVO
dmi.bios.version: 7OETB5WW (2.15 )
dmi.board.name: 8932CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr7OETB5WW(2.15):bd05/08/2008:svnLENOVO:pn8932CTO:pvrThinkPadR61:rvnLENOVO:rn8932CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 8932CTO
dmi.product.version: ThinkPad R61
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.6+bzr20110929-0ubuntu5
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
chenel (jeremy-wolcott) wrote :
Revision history for this message
chenel (jeremy-wolcott) wrote :
Revision history for this message
chenel (jeremy-wolcott) wrote :
Revision history for this message
chenel (jeremy-wolcott) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, how do you minimize piding? Does it happen every time? I can't confirm there

affects: unity (Ubuntu) → compiz (Ubuntu)
Changed in compiz (Ubuntu):
importance: Undecided → Low
Revision history for this message
chenel (jeremy-wolcott) wrote :

I use the "minimize" button in the menu bar. Note tha the behavior is not confined to Pidgin (my example #2 minimizes gedit instead).

I'll play around some more and see if I can find any more clues. Is this likely to depend on which Compiz plugins are enabled?

Revision history for this message
chenel (jeremy-wolcott) wrote :

Oh, and no, it doesn't happen every single time. For me it seems to occur at about the 80-90% level, though I haven't checked the frequency very carefully.

Revision history for this message
Vladimir Mencl (vladimir-mencl) wrote :

Hi,. I'm getting this bug too ....

My scenario is:
* I'm using focus-follows-mouse WITHOUT autoraise
* I'm running a maximized Firefox window, open a couple of terminal windows on top of it.
* When I close one of the terminal window, the window the mouse cursor is over gets the focus and gets RAISED.
* If it is the browser, then it gets raised above all the other terminal windows.
* My "workaround" is to keep sending the Firefox window to the background (lower-window) each time it happens ... but it's at times making me wish I had not upgraded to Oneiric / switched to Unity. (I was running Gnome Classic No Effects with 11.04)

Cheers,
Vlad

Revision history for this message
chenel (jeremy-wolcott) wrote :

Hi,

Vladimir's comment caught my attention. I've tested it out, and it looks like this ONLY happens when window focus is set to "Mouse" or "Sloppy" (using the gnome-tweak/"Advanced Settings" tool.

Hope this helps.

Revision history for this message
Vladimir Mencl (vladimir-mencl) wrote :

Hi Jeremy,

Thanks for this info. Just tried out installing the GNOME 3 Advanced Settings tool. Showed up my "Window focus mode" was "Sloppy". Tried with "Mouse", was getting the same symptoms. Tried "Click" (which I would not really prefer to use, as I want to keep the focus-follows-mouse behavior), but even with mode, I was getting the same (or very similar symptoms). With "Click", after closing a window, focus was going to the previous window that had focus before it went to the current window - and the window that got the focus was automatically raised (even though I did not click on it).

Overall, it looks to me that the root cause of this bug is that when a window is closed and another window gets the focus (either because it is under the cursor or because it had focus previously), the transition of focus triggers the same behavior as if the window had been clicked on to get focus - and raises the window (even with Auto-Raise off).

Anyone knows about a possible workaround?

Cheers,
Vlad

Revision history for this message
jhfhlkjlj (fdsuufijjejejejej-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 888704, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

Revision history for this message
Vladimir Mencl (vladimir-mencl) wrote :

Just happy to confirm that the fix included in compiz-0.9.7.4 (released in 12.04) is working for me all fine.

Cheers,
Vlad

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.