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
=== modified file 'targets/mutter/plugin.vala'
--- targets/mutter/plugin.vala 2010-09-13 20:14:46 +0000
+++ targets/mutter/plugin.vala 2010-09-16 17:39:47 +0000
@@ -1407,16 +1407,19 @@
1407 Idle.add (() => {1407 Idle.add (() => {
1408 if (win is Object)1408 if (win is Object)
1409 {1409 {
1410 if (Utils.window_is_decorated (Mutter.MetaWindow.get_xwindow (win)) == false && Mutter.MetaWindow.is_maximized (win) == false)1410 bool decorated = Utils.window_is_decorated (Mutter.MetaWindow.get_xwindow (win));
1411 bool maximized = Mutter.MetaWindow.is_maximized (win);
1412
1413 bool fullscreen;
1414 win.get ("fullscreen", out fullscreen);
1415
1416 if (!decorated && !maximized)
1411 {1417 {
1412 window.set_data (UNDECORATED_HINT, "%s".printf ("true"));1418 window.set_data (UNDECORATED_HINT, "%s".printf ("true"));
1413 }1419 }
1414 else1420 else if (decorated && maximized && !fullscreen)
1415 {1421 {
1416 if (Mutter.MetaWindow.is_maximized (win))1422 Utils.window_set_decorations (Mutter.MetaWindow.get_xwindow (win), 0);
1417 {
1418 Utils.window_set_decorations (Mutter.MetaWindow.get_xwindow (win), 0);
1419 }
1420 }1423 }
1421 }1424 }
14221425