Revision: 6641
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6641&view=rev
Author:   hofman
Date:     2010-07-23 21:00:11 +0000 (Fri, 23 Jul 2010)

Log Message:
-----------
explicitly set fullscreen window frame, as this is somehow ignored in init on 
10.5 

Modified Paths:
--------------
    trunk/SKMainWindowController.m

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2010-07-23 09:22:10 UTC (rev 6640)
+++ trunk/SKMainWindowController.m      2010-07-23 21:00:11 UTC (rev 6641)
@@ -1303,6 +1303,9 @@
     // create a new full screen window
     SKMainFullScreenWindow *fullScreenWindow = [[[SKMainFullScreenWindow 
alloc] initWithScreen:screen] autorelease];
     
+    // appartently this is needed due to a bug on 10.5
+    [fullScreenWindow setFrame:[screen frame] display:NO]; 
+    
     if ([[mainWindow firstResponder] isDescendantOf:pdfView])
         [mainWindow makeFirstResponder:nil];
     [fullScreenWindow setMainView:([self interactionMode] == 
SKPresentationMode ? (id)pdfView : (id)pdfSplitView)];
@@ -1325,6 +1328,7 @@
                 [aWindow setBackgroundColor:backgroundColor];
                 [aWindow setLevel:NSFloatingWindowLevel];
                 [aWindow 
setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces];
+                [aWindow setFrame:[screenToBlank frame] display:YES]; 
                 [aWindow orderFront:nil];
                 [aWindow setReleasedWhenClosed:NO];
                 [aWindow setHidesOnDeactivate:YES];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to