From 667d3f6a08ba5c4574df0d4f3fd27a47dc1c228d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 6 Sep 2011 16:21:42 +0200 Subject: NEWT/WindowsWindow: call sizeChanged() if invisible as well no reason to supress this information, it's sent only once (like X11) --- src/newt/native/WindowsWindow.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c index 2ae50f550..9e635ef40 100644 --- a/src/newt/native/WindowsWindow.c +++ b/src/newt/native/WindowsWindow.c @@ -761,9 +761,7 @@ static void WmSize(JNIEnv *env, jobject window, HWND wnd, UINT type) DBG_PRINT("*** WindowsWindow: WmSize window %p, %dx%d, visible %d\n", (void*)wnd, w, h, isVisible); - if(isVisible) { - (*env)->CallVoidMethod(env, window, sizeChangedID, w, h, JNI_FALSE); - } + (*env)->CallVoidMethod(env, window, sizeChangedID, w, h, JNI_FALSE); } static LRESULT CALLBACK wndProc(HWND wnd, UINT message, @@ -961,8 +959,7 @@ static LRESULT CALLBACK wndProc(HWND wnd, UINT message, case WM_MOVE: DBG_PRINT("*** WindowsWindow: WM_MOVE window %p, %d/%d\n", wnd, (int)LOWORD(lParam), (int)HIWORD(lParam)); - (*env)->CallVoidMethod(env, window, positionChangedID, - (jint)LOWORD(lParam), (jint)HIWORD(lParam)); + (*env)->CallVoidMethod(env, window, positionChangedID, (jint)LOWORD(lParam), (jint)HIWORD(lParam)); useDefWindowProc = 1; break; -- cgit v1.2.3