Use -[NSScreen visibleFrame] to get full-screen max dimensions

This fixes a bug where the window dimensions were not restored after
leaving full-screen (with 'maxvert' fu-option set).
This commit is contained in:
Bjorn Winckler
2008-06-07 14:30:52 +02:00
parent c4222c6ebb
commit 2fa74c01aa
+1 -1
View File
@@ -137,7 +137,7 @@ static int numFullscreenWindows = 0;
int fuRows = currRows, fuColumns = currColumns;
int maxRows, maxColumns;
NSSize size = [[self screen] frame].size;
NSSize size = [[self screen] visibleFrame].size;
[view constrainRows:&maxRows columns:&maxColumns toSize:size];
// Store current pre-fu vim size