From edbee9a1f34929e9bd3119bac88ab1c759c569a3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 16 Sep 2011 13:15:34 +0200 Subject: NEWT/WindowImpl: Remove wait for position (keep waitForSize for reparent/fullscreen) Window position is not deterministic enough and slows down processing while sync on it --- src/newt/native/WindowsWindow.c | 4 ---- src/newt/native/X11Window.c | 4 ---- 2 files changed, 8 deletions(-) (limited to 'src/newt/native') diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c index 43a5e8459..8402373b3 100644 --- a/src/newt/native/WindowsWindow.c +++ b/src/newt/native/WindowsWindow.c @@ -1411,10 +1411,6 @@ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_windows_WindowsWindow_CreateWind height += insets->top + insets->bottom; // top-level DBG_PRINT("*** WindowsWindow: CreateWindow top-level %d/%d %dx%d\n", x, y, width, height); - if(userPos) { - // mark pos as undef, which cases java to wait for WM reported pos - (*env)->CallVoidMethod(env, wud->jinstance, positionChangedID, -1, -1); - } NewtWindow_setVisiblePosSize(window, TST_FLAG_IS_ALWAYSONTOP(flags), TRUE, x, y, width, height); } } diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c index 199caafad..30ff7f6f3 100644 --- a/src/newt/native/X11Window.c +++ b/src/newt/native/X11Window.c @@ -1664,10 +1664,6 @@ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_x11_X11Window_CreateWindow0 if(0>x) { x = 0; } if(0>y) { y = 0; } DBG_PRINT("X11: [CreateWindow]: top-level: %d/%d\n", x, y); - if(userPos) { - // mark pos as undef, which cases java to wait for WM reported pos - (*env)->CallVoidMethod(env, jwindow, positionChangedID, -1, -1); - } NewtWindows_setPosSize(dpy, window, x, y, width, height); if( TST_FLAG_IS_ALWAYSONTOP(flags) ) { -- cgit v1.2.3