summaryrefslogtreecommitdiffstats
path: root/src/newt/native/WindowsWindow.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-06 16:21:42 +0200
committerSven Gothel <[email protected]>2011-09-06 16:21:42 +0200
commit667d3f6a08ba5c4574df0d4f3fd27a47dc1c228d (patch)
tree07d9a97ac7d66f7ed7f0d16b6bd2e8ef9240e1aa /src/newt/native/WindowsWindow.c
parentfbcbd66a47ae16d59b0a00e2900b0d561a22eeb1 (diff)
NEWT/WindowsWindow: call sizeChanged() if invisible as well
no reason to supress this information, it's sent only once (like X11)
Diffstat (limited to 'src/newt/native/WindowsWindow.c')
-rw-r--r--src/newt/native/WindowsWindow.c7
1 files 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;