aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-16 13:15:34 +0200
committerSven Gothel <[email protected]>2011-09-16 13:15:34 +0200
commitedbee9a1f34929e9bd3119bac88ab1c759c569a3 (patch)
treefbbd779b8dfc1cb12bc29a654b60432ed6a00134 /src/newt/native
parente228acfcf5be36fb161043bb2ae21f8d60bc6ca4 (diff)
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
Diffstat (limited to 'src/newt/native')
-rw-r--r--src/newt/native/WindowsWindow.c4
-rw-r--r--src/newt/native/X11Window.c4
2 files changed, 0 insertions, 8 deletions
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) ) {