Transparency setting not lost after leaving full-screen

Fixes bug where setting 'transp' while in full-screen and switching back
to windowed mode would result in the window being opaque.
This commit is contained in:
Nico Weber
2008-03-22 17:15:46 +01:00
committed by Bjorn Winckler
parent 3910f20697
commit 7792c4e8ab
+3 -1
View File
@@ -367,7 +367,9 @@
// NOTE: This is called when the transparency changes so set the opacity
// flag on the window here (should be faster if the window is opaque).
BOOL isOpaque = [back alphaComponent] == 1.0f;
[[self window] setOpaque:isOpaque];
[decoratedWindow setOpaque:isOpaque];
if (fullscreenEnabled)
[fullscreenWindow setOpaque:isOpaque];
[vimView setDefaultColorsBackground:back foreground:fore];
}