ecore_cocoa: fix windows initial rendering
authorJean Guyomarc'h <jean@guyomarch.bzh>
Thu, 9 Mar 2017 22:04:26 +0000 (23:04 +0100)
committerJean Guyomarc'h <jean@guyomarch.bzh>
Thu, 9 Mar 2017 22:16:16 +0000 (23:16 +0100)
We need to refresh the Cocoa's content view when showing the window.
In some particular cases (including the elementary_test initial window),
the content view is redrawn because of external events (the entry
animator). When no action at all is performed, the window and the
content view are resized... nice... but not drew...

Such a simple fix for this hell of a bug!

Fixes T5210

src/lib/ecore_cocoa/ecore_cocoa_window.m

index 2edb8b6..ebd3ddd 100644 (file)
@@ -539,6 +539,7 @@ ecore_cocoa_window_show(Ecore_Cocoa_Window *window)
 
    if (![window->window isVisible])
      [window->window makeKeyAndOrderFront:NSApp];
+   [window->window display];
 }
 
 EAPI void