diff options
Diffstat (limited to 'src/lib/ecore_win32/ecore_win32.c')
-rw-r--r-- | src/lib/ecore_win32/ecore_win32.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/lib/ecore_win32/ecore_win32.c b/src/lib/ecore_win32/ecore_win32.c index ec9738ee1b..f217b22475 100644 --- a/src/lib/ecore_win32/ecore_win32.c +++ b/src/lib/ecore_win32/ecore_win32.c @@ -253,7 +253,7 @@ _ecore_win32_window_procedure(HWND window, return TRUE; case WM_MOVING: INF("moving window message"); - _ecore_win32_event_handle_configure_notify(data); + _ecore_win32_event_handle_configure_notify(data, EINA_FALSE); return TRUE; case WM_MOVE: INF("move window message"); @@ -261,10 +261,11 @@ _ecore_win32_window_procedure(HWND window, case WM_SIZING: INF("sizing window message"); _ecore_win32_event_handle_resize(data); - _ecore_win32_event_handle_configure_notify(data); + _ecore_win32_event_handle_configure_notify(data, EINA_FALSE); return TRUE; case WM_SIZE: INF("size window message"); + _ecore_win32_event_handle_configure_notify(data, EINA_TRUE); return 0; /* case WM_WINDOWPOSCHANGING: */ /* { */ @@ -273,11 +274,11 @@ _ecore_win32_window_procedure(HWND window, /* printf (" *** ecore message : WINDOWPOSCHANGING %ld %ld\n", */ /* rect.right - rect.left, rect.bottom - rect.top); */ /* } */ -/* _ecore_win32_event_handle_configure_notify(data); */ +/* _ecore_win32_event_handle_configure_notify(data, EINA_FALSE); */ /* return 0; */ case WM_WINDOWPOSCHANGED: INF("position changed window message"); - _ecore_win32_event_handle_configure_notify(data); + _ecore_win32_event_handle_configure_notify(data, EINA_FALSE); _ecore_win32_event_handle_property_notify(data); _ecore_win32_event_handle_expose(data); return 0; @@ -527,6 +528,8 @@ ecore_win32_init() goto shutdown_ecore_event; } + ecore_win32_monitor_init(); + icon = LoadImage(_ecore_win32_instance, MAKEINTRESOURCE(IDI_ICON), IMAGE_ICON, @@ -589,8 +592,6 @@ ecore_win32_init() for (i = 0; i < 77; i++) _ecore_win32_cursor_x[i] = _ecore_win32_cursor_x11_shaped_new(i); - ecore_win32_monitor_init(); - return _ecore_win32_init_count; unregister_class: @@ -625,8 +626,6 @@ ecore_win32_shutdown() if (--_ecore_win32_init_count != 0) return _ecore_win32_init_count; - ecore_win32_monitor_shutdown(); - for (i = 0; i < 77; i++) ecore_win32_cursor_free(_ecore_win32_cursor_x[i]); @@ -651,6 +650,8 @@ ecore_win32_shutdown() if (!UnregisterClass(ECORE_WIN32_WINDOW_CLASS, _ecore_win32_instance)) INF("UnregisterClass() failed"); + ecore_win32_monitor_shutdown(); + if (!FreeLibrary(_ecore_win32_instance)) INF("FreeLibrary() failed"); |