From 75c8bbcc13c31aef581bb2c6d9ffc6caf422bfa7 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Tue, 22 Jul 2008 23:49:44 +0200 Subject: [PATCH] macosx: Make sure we don't see a grey flash in float-on-top mode in embedded window. --- modules/gui/macosx/embeddedwindow.h | 1 + modules/gui/macosx/embeddedwindow.m | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/modules/gui/macosx/embeddedwindow.h b/modules/gui/macosx/embeddedwindow.h index c31aa48e5f..f451b51697 100644 --- a/modules/gui/macosx/embeddedwindow.h +++ b/modules/gui/macosx/embeddedwindow.h @@ -53,6 +53,7 @@ BOOL b_window_is_invisible; NSSize videoRatio; + NSInteger originalLevel; } - (void)controlTintChanged; diff --git a/modules/gui/macosx/embeddedwindow.m b/modules/gui/macosx/embeddedwindow.m index 5fceaa9996..a4d98e8d7c 100644 --- a/modules/gui/macosx/embeddedwindow.m +++ b/modules/gui/macosx/embeddedwindow.m @@ -245,6 +245,10 @@ if( blackout_other_displays ) [screen blackoutOtherScreens]; + /* Make sure we don't see the window flashes in float-on-top mode */ + originalLevel = [self level]; + [self setLevel:NSNormalWindowLevel]; + /* Only create the o_fullscreen_window if we are not in the middle of the zooming animation */ if (!o_fullscreen_window) { @@ -506,6 +510,8 @@ [o_fullscreen_window release]; o_fullscreen_window = nil; + [self setLevel:originalLevel]; + [self unlockFullscreenAnimation]; } -- 2.39.2