Merge lp:~unity-team/unity/youtube-fix into lp:unity

Proposed by Jason Smith
Status: Merged
Approved by: Neil J. Patel
Approved revision: no longer in the source branch.
Merged at revision: 511
Proposed branch: lp:~unity-team/unity/youtube-fix
Merge into: lp:unity
Diff against target: 28 lines (+9/-6)
1 file modified
targets/mutter/plugin.vala (+9/-6)
To merge this branch: bzr merge lp:~unity-team/unity/youtube-fix
Reviewer Review Type Date Requested Status
Neil J. Patel Pending
Review via email: mp+35700@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Neil J. Patel (njpatel) wrote :

Approved pending removal of the npviewer.bin check

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'targets/mutter/plugin.vala'
2--- targets/mutter/plugin.vala 2010-09-13 20:14:46 +0000
3+++ targets/mutter/plugin.vala 2010-09-16 17:39:47 +0000
4@@ -1407,16 +1407,19 @@
5 Idle.add (() => {
6 if (win is Object)
7 {
8- if (Utils.window_is_decorated (Mutter.MetaWindow.get_xwindow (win)) == false && Mutter.MetaWindow.is_maximized (win) == false)
9+ bool decorated = Utils.window_is_decorated (Mutter.MetaWindow.get_xwindow (win));
10+ bool maximized = Mutter.MetaWindow.is_maximized (win);
11+
12+ bool fullscreen;
13+ win.get ("fullscreen", out fullscreen);
14+
15+ if (!decorated && !maximized)
16 {
17 window.set_data (UNDECORATED_HINT, "%s".printf ("true"));
18 }
19- else
20+ else if (decorated && maximized && !fullscreen)
21 {
22- if (Mutter.MetaWindow.is_maximized (win))
23- {
24- Utils.window_set_decorations (Mutter.MetaWindow.get_xwindow (win), 0);
25- }
26+ Utils.window_set_decorations (Mutter.MetaWindow.get_xwindow (win), 0);
27 }
28 }
29