Merge lp:~townsend/compiz/fix-workspace-switch into lp:compiz/0.9.11

Proposed by Christopher Townsend
Status: Merged
Approved by: Francis Ginther
Approved revision: 3799
Merged at revision: 3806
Proposed branch: lp:~townsend/compiz/fix-workspace-switch
Merge into: lp:compiz/0.9.11
Diff against target: 17 lines (+5/-3)
1 file modified
plugins/wall/src/wall.cpp (+5/-3)
To merge this branch: bzr merge lp:~townsend/compiz/fix-workspace-switch
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Brandon Schaefer (community) Approve
Review via email: mp+193309@code.launchpad.net

Commit message

Second part of the fix to keep the workspace from automatically switching when more than half of the window is contained in another workspace.

Description of the change

= Issue =
The issue was that if a window was contained more than 50% into a different workspace, then the workspace would switch and the window would completely move to the workspace. I already have a fix in Compiz for the automatic window movement, but the automatic workspace switch would still occur.

= Fix =
This addresses the automatic workspace switch. Care had to be taken to still allow the workspace switch if the window is completely contained in another workspace, such as clicking on the icon in the Launcher. So, if any part of the window is contained in the current workspace, then the workspace will not switch automatically.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

LGTM

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Autolanding.
More details in the following jenkins job:
http://jenkins.qa.ubuntu.com/job/compiz-autolanding/181/
Executed test runs:

review: Needs Fixing (continuous-integration)
Revision history for this message
Francis Ginther (fginther) wrote :

Jenkins is configured to run two jobs for lp:compiz. As a result, I had to abort one of them and re-approve so that the correct job is allowed to finish.

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/wall/src/wall.cpp'
2--- plugins/wall/src/wall.cpp 2013-09-24 20:24:20 +0000
3+++ plugins/wall/src/wall.cpp 2013-10-30 19:12:44 +0000
4@@ -556,9 +556,11 @@
5 if (window->placed () && !screen->otherGrabExist ("wall", "switcher", 0))
6 {
7 int dx, dy;
8- CompPoint viewport;
9-
10- screen->viewportForGeometry (window->geometry (), viewport);
11+ CompPoint viewport = screen->vp ();
12+
13+ if (ws->optionGetAutoSwitchVpAndWindow () || window->defaultViewport () != viewport)
14+ screen->viewportForGeometry (window->geometry (), viewport);
15+
16 dx = viewport.x ();
17 dy = viewport.y ();
18

Subscribers

People subscribed via source and target branches