Merge lp:~townsend/unity/fix-lp1064155 into lp:unity

Proposed by Christopher Townsend
Status: Merged
Approved by: Brandon Schaefer
Approved revision: no longer in the source branch.
Merged at revision: 3320
Proposed branch: lp:~townsend/unity/fix-lp1064155
Merge into: lp:unity
Diff against target: 12 lines (+1/-1)
1 file modified
plugins/unityshell/src/unityshell.cpp (+1/-1)
To merge this branch: bzr merge lp:~townsend/unity/fix-lp1064155
Reviewer Review Type Date Requested Status
Brandon Schaefer (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Sam Spilsbury (community) Approve
Review via email: mp+162271@code.launchpad.net

Commit message

Fixes issue where minimizing a full screen window would not draw the Launcher and Panel after minimization.

Description of the change

= Issue =
Upon minimizing a full screen window, the Launcher and Panel are not visible.

= Fix =
Add logic to check if full screen windows are minimized.

= Test =
This is a visual issue. Reproduce issue by minimizing a full screen window and observe Launcher and Panel is not visible. Apply this merge and observe that minimizing a full screen window will display the Launcher and Panel.

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
Sam Spilsbury (smspillaz) wrote :

Like the compiz merge proposal, I feel like this is probably in the wrong place. The correct approach would be to not add the minimized window to fullscreen_windows_ in the first place in UnityWindow::glPaint rather than checking for a minimized fullscreen window in fullscren_windows_ later and preventing the operation of the occlusion code after that.

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

Thanks Sam. I will re-work this some to take your suggestions into account.

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Great, looks good to me :)

review: Approve
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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/unityshell.cpp'
2--- plugins/unityshell/src/unityshell.cpp 2013-04-23 16:59:52 +0000
3+++ plugins/unityshell/src/unityshell.cpp 2013-05-08 21:58:38 +0000
4@@ -2505,7 +2505,7 @@
5 uScreen->windows_for_monitor_[monitor] = 1;
6
7 if (!(mask & nonOcclusionBits) &&
8- (window->state() & CompWindowStateFullscreenMask) &&
9+ (window->state() & CompWindowStateFullscreenMask && !window->minimized()) &&
10 uScreen->windows_for_monitor_[monitor] == 1)
11 // And I've been advised to test other things, but they don't work:
12 // && (attrib.opacity == OPAQUE)) <-- Doesn't work; Only set in glDraw