Inconsistent behaviour calling windows focus on another workspace

Bug #1038785 reported by Dario Ruellan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
New
Undecided
Papercuts Ninjas
compiz (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 12.04.1 LTS;
Unity: 5.16.0
Compiz: 0.9.7.8;

Ubuntu 12.10
Unity 6.8.0
Compiz 0.9.8.4

What I expect:
Clicking on an open App on the launcher, app gains focus. If the app is on another workspace, Unity switches workspaces.

What I get:
The app gains focus, but the window is moved to the current workspace, sometimes on an off-screen position.

To reproduce:
- Switch to a second workspace.
- Open Empathy.
- Super+ctrl+arrow to put the window to the right
- Switch to the first workspace
- Click on the Empathy icon
The app window is moved offscreen or nothing happens (because Compiz thinks the app is in the current workspace).

Please note than when you Super+ctrl+arrow an application, part of the window (sometimes just a pixel) is placed offscreen, this seems enough to compiz to think the app is on another workspace.

Tags: bot-comment
Revision history for this message
Dario Ruellan (druellan) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1038785/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Dario Ruellan (druellan) wrote :

In reply to the automated message: I was going to file the bug about Compiz package, but I'm not really sure and I didn't want to mislead. Apologies.

affects: ubuntu → compiz (Ubuntu)
Revision history for this message
Dario Ruellan (druellan) wrote :

Another thing I noticed that perhaps is related: sometimes when you call for the "spread" desktop (super+w) one or all the windows got positioned off screen. This seems to happen when you have a window slightly off-screen on an adjacent desktop.
I'm still trying to find steps to reproduce it.

Dario Ruellan (druellan)
description: updated
Revision history for this message
Dario Ruellan (druellan) wrote :

I can't reproduce this anymore on Compiz 0.9.7.9
I'm going to try reproduce it again later, and mark the bug as invalid if I can't.

Revision history for this message
Dario Ruellan (druellan) wrote :

Compiz 0.9.8.6 and I can reproduce it again. Not sure if this is a regression or I missed something on my previous tests. To reproduce:

  - Switch to the workspace on the right (ctrl+alt+right).
  - Open Emapthy
  - Dock Empathy to the right (super+ctrl+right)
  - Switch to the workspace on the left (ctrl+alt+left)
  - Click on the Empathy icon on the Launcher

Instead of a workspace switch, the app is misplaced on the current workspace.

Revision history for this message
Dario Ruellan (druellan) wrote :

I'm going to bring this to the Ninja team, to anyone who wants to help me troubleshoot this.

I bet the problem is related to Compiz's grid plugin. Seems to me that when you right-snap a window, the size of the window exceeds the size of the desktop by one or two pixels. Thats enough to wrap contents to another workspace and trick Unity to think the window is misplaced.

Changed in hundredpapercuts:
assignee: nobody → Paper Cuts Ninja (papercuts-ninja)
assignee: Paper Cuts Ninja (papercuts-ninja) → nobody
assignee: nobody → Paper Cuts Ninja (papercuts-ninja)
assignee: Paper Cuts Ninja (papercuts-ninja) → nobody
Dario Ruellan (druellan)
Changed in hundredpapercuts:
assignee: nobody → Paper Cuts Ninja (papercuts-ninja)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Dario,

We have fixed two such bugs like you describe recently. The latest one is bug 1037164 so I will assume this is a duplicate of that at least.

Revision history for this message
Dario Ruellan (druellan) wrote :

Thanks Daniel, and yes, seems to be a duplicate of what I'm experiencing. Glad to see there are some fixes.

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.