From cc36ab53b327b1a05edba006dcb581815fbdd08f Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 7 Aug 2015 12:55:56 +0000 Subject: - Implement Fl_Window::wait_for_expose() for Mac OS: The -[NSWindow makeKeyAndOrderFront:] message used to make the window appear on the screen, but, starting with 10.10 (approximately), this changed, and it became necessary to query for events for a new window to appear on the screen. With 10.11 two event messages are needed. The solution is therefore to implement Fl_Window::wait_for_expose(). - Calling NSDisableScreenUpdates()()/NSEnableScreenUpdates() before and after window updates greatly accelerates multi-window update operations. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/mac.H | 1 + 1 file changed, 1 insertion(+) (limited to 'FL') diff --git a/FL/mac.H b/FL/mac.H index 259937915..2cc0d9687 100644 --- a/FL/mac.H +++ b/FL/mac.H @@ -208,6 +208,7 @@ public: static Fl_Fontdesc* calc_fl_fonts(void); // computes the fl_fonts global variable static int dnd(int use_selection); // call Fl_X::dnd(1) to support text dragging static int calc_mac_os_version(void); // computes the fl_mac_os_version global variable + static void do_wait_for_expose(); private: #if FLTK_ABI_VERSION >= 10304 CGRect* subRect_; // makes sure subwindow remains inside its parent window -- cgit v1.2.3