Merge lp:~mrasmus/unity/fix-718886 into lp:unity

Proposed by Matthew Rasmus
Status: Merged
Merged at revision: 866
Proposed branch: lp:~mrasmus/unity/fix-718886
Merge into: lp:unity
Diff against target: 19 lines (+8/-0)
1 file modified
src/PanelMenuView.cpp (+8/-0)
To merge this branch: bzr merge lp:~mrasmus/unity/fix-718886
Reviewer Review Type Date Requested Status
Mirco Müller (community) Approve
Review via email: mp+50035@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Mirco Müller (macslow) wrote :

Approved!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/PanelMenuView.cpp'
2--- src/PanelMenuView.cpp 2011-02-10 14:26:19 +0000
3+++ src/PanelMenuView.cpp 2011-02-16 19:27:29 +0000
4@@ -636,7 +636,15 @@
5 _is_maximized = WindowManager::Default ()->IsWindowMaximized (xid);
6
7 if (_decor_map.find (xid) == _decor_map.end ())
8+ {
9 _decor_map[xid] = true;
10+
11+ // if we've just started tracking this window and it is maximized, let's
12+ // make sure it's undecorated just in case it slipped by us earlier
13+ // (I'm looking at you, Chromium!)
14+ if (_is_maximized)
15+ WindowManager::Default ()->Undecorate (xid);
16+ }
17
18 // first see if we need to remove and old callback
19 if (_name_changed_callback_id != 0)