From 9f15516f5e1c2a72a62cc22faff4023a9bb870cd Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Wed, 12 Oct 2011 12:38:32 +0000 Subject: Mac OS: don't generate an FL_SCREEN_CONFIGURATION_CHANGED event at application startup. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9131 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index b38c652d1..cf4853b7d 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1295,7 +1295,7 @@ void fl_open_display() { selector:@selector(anywindowwillclosenotif:) name:NSWindowWillCloseNotification object:nil]; - [[NSNotificationCenter defaultCenter] postNotificationName:NSApplicationDidChangeScreenParametersNotification object:NSApp]; + main_screen_height = [[[NSScreen screens] objectAtIndex:0] frame].size.height; } } -- cgit v1.2.3