Revision: 6643
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6643&view=rev
Author:   hofman
Date:     2010-07-24 00:40:14 +0000 (Sat, 24 Jul 2010)

Log Message:
-----------
incorporate setting frame of fullscreen window in init method

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

Modified: trunk/SKFullScreenWindow.m
===================================================================
--- trunk/SKFullScreenWindow.m  2010-07-24 00:25:14 UTC (rev 6642)
+++ trunk/SKFullScreenWindow.m  2010-07-24 00:40:14 UTC (rev 6643)
@@ -54,6 +54,8 @@
         [self setBackgroundColor:[NSColor blackColor]];
         [self setReleasedWhenClosed:NO];
         [self setExcludedFromWindowsMenu:YES];
+        // appartently this is needed due to a bug on 10.5
+        [self setFrame:[screen frame] display:NO];
     }
     return self;
 }

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2010-07-24 00:25:14 UTC (rev 6642)
+++ trunk/SKMainWindowController.m      2010-07-24 00:40:14 UTC (rev 6643)
@@ -1303,9 +1303,6 @@
     // 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)];
@@ -1328,7 +1325,6 @@
                 [aWindow setBackgroundColor:backgroundColor];
                 [aWindow setLevel:NSFloatingWindowLevel];
                 [aWindow 
setCollectionBehavior:NSWindowCollectionBehaviorCanJoinAllSpaces];
-                [aWindow setFrame:[screenToBlank frame] display:YES]; 
                 [aWindow orderFront:nil];
                 [aWindow setReleasedWhenClosed:NO];
                 [aWindow setHidesOnDeactivate:YES];
@@ -1486,7 +1482,6 @@
     SKFullScreenWindow *fadeWindow = [[SKFullScreenWindow alloc] 
initWithScreen:[fullScreenWindow screen]];
     [fadeWindow setBackgroundColor:[fullScreenWindow backgroundColor]];
     [fadeWindow setLevel:[fullScreenWindow level]];
-    [fadeWindow setFrame:[fullScreenWindow frame] display:NO];
     [fadeWindow setMainView:[fullScreenWindow mainView]];
     [fadeWindow orderWindow:NSWindowAbove relativeTo:[fullScreenWindow 
windowNumber]];
     [fadeWindow display];


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