From 7792c4e8ab3a18c8ce952c84975b9e4adcdab6d9 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Sat, 22 Mar 2008 17:15:46 +0100 Subject: [PATCH] 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. --- src/MacVim/MMWindowController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MacVim/MMWindowController.m b/src/MacVim/MMWindowController.m index 3451b67e70..5d42a7f48e 100644 --- a/src/MacVim/MMWindowController.m +++ b/src/MacVim/MMWindowController.m @@ -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]; }