Merge lp:~townsend/compiz/fix-lp1092323-0.9.10 into lp:compiz/0.9.10

Proposed by Christopher Townsend
Status: Merged
Approved by: Christopher Townsend
Approved revision: 3781
Merged at revision: 3788
Proposed branch: lp:~townsend/compiz/fix-lp1092323-0.9.10
Merge into: lp:compiz/0.9.10
Diff against target: 50 lines (+16/-2)
3 files modified
debian/patches/ubuntu-config.patch (+10/-1)
plugins/wall/src/wall.cpp (+1/-1)
plugins/wall/wall.xml.in (+5/-0)
To merge this branch: bzr merge lp:~townsend/compiz/fix-lp1092323-0.9.10
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+181336@code.launchpad.net

Commit message

Alt-Tabbing or Launcher selecting a window that is over 50% in a different viewport should not switch the viewport nor change the placement of the window. The fix is to add an option to turn this behavior on or off. By default, the option is on, but Ubuntu is patched to turn it off to fix this bug.

Description of the change

Ayatana Design has requested that when Alt-Tabbing to a window that is more than 50% contained in a different viewport, that:
1. The viewport does not switch and;
2. The window's position stays where it currently is.

This fix adds an option to either enable of disable this behavior. By default, the behavior is enabled, meaning nothing changes from current behavior. An Ubuntu patch is included to disable this behavior to match what Design wants.

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
Christopher Townsend (townsend) wrote :

Setting this a WIP to make this an option instead of just ripping out the code. Then patch Ubuntu to disable the code path so the viewport switch/window move will not occur.

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, waiting for trunk to be merged before global approval.

review: Approve
Revision history for this message
Christopher Townsend (townsend) wrote :

I'm globally approving since the MP for trunk merged.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/patches/ubuntu-config.patch'
--- debian/patches/ubuntu-config.patch 2013-08-19 14:35:46 +0000
+++ debian/patches/ubuntu-config.patch 2013-08-28 12:08:38 +0000
@@ -653,7 +653,16 @@
653 </default>653 </default>
654 </option>654 </option>
655 </subgroup>655 </subgroup>
656@@ -351,7 +351,7 @@656@@ -201,7 +201,7 @@
657 <option name="auto_switch_vp_and_window" type="bool">
658 <_short>Auto Switch Vp And Window</_short>
659 <_long>Auto switch the viewport and move window when Alt-Tab to window that is more than half contained in another viewport</_long>
660- <default>true</default>
661+ <default>false</default>
662 </option>
663 </group>
664 <group>
665@@ -356,7 +356,7 @@
657 <option name="edgeflip_move" type="bool">666 <option name="edgeflip_move" type="bool">
658 <_short>Edge Flip Move</_short>667 <_short>Edge Flip Move</_short>
659 <_long>Flip viewport when moving a window to a screen edge</_long>668 <_long>Flip viewport when moving a window to a screen edge</_long>
660669
=== modified file 'plugins/wall/src/wall.cpp'
--- plugins/wall/src/wall.cpp 2013-05-15 10:38:49 +0000
+++ plugins/wall/src/wall.cpp 2013-08-28 12:08:38 +0000
@@ -553,7 +553,7 @@
553{553{
554 WALL_SCREEN (screen);554 WALL_SCREEN (screen);
555555
556 if (window->placed () && !screen->otherGrabExist ("wall", "switcher", 0))556 if (ws->optionGetAutoSwitchVpAndWindow () && window->placed () && !screen->otherGrabExist ("wall", "switcher", 0))
557 {557 {
558 int dx, dy;558 int dx, dy;
559 CompPoint viewport;559 CompPoint viewport;
560560
=== modified file 'plugins/wall/wall.xml.in'
--- plugins/wall/wall.xml.in 2013-04-27 03:18:27 +0000
+++ plugins/wall/wall.xml.in 2013-08-28 12:08:38 +0000
@@ -198,6 +198,11 @@
198 <_long>Windows that should not slide during the slide animation</_long>198 <_long>Windows that should not slide during the slide animation</_long>
199 <default>type=Dock | type=Desktop | state=Sticky</default>199 <default>type=Dock | type=Desktop | state=Sticky</default>
200 </option>200 </option>
201 <option name="auto_switch_vp_and_window" type="bool">
202 <_short>Auto Switch Vp And Window</_short>
203 <_long>Auto switch the viewport and move window when Alt-Tab to window that is more than half contained in another viewport</_long>
204 <default>true</default>
205 </option>
201 </group>206 </group>
202 <group>207 <group>
203 <_short>Bindings</_short>208 <_short>Bindings</_short>

Subscribers

People subscribed via source and target branches