From f0159e479d386e5ae7d1e5acfb44eb7a534cb24c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 24 Dec 2011 04:15:52 +0100 Subject: NEWT Windows/X11: Remove missed negative coordinate restrictions. --- src/newt/native/X11Window.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/newt/native') diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c index 1c74b7b7c..0a7e1cf77 100644 --- a/src/newt/native/X11Window.c +++ b/src/newt/native/X11Window.c @@ -456,14 +456,12 @@ static Bool WaitForUnmapNotify( Display *dpy, XEvent *event, XPointer arg ) { static void NewtWindows_setPosSize(Display *dpy, Window w, jint x, jint y, jint width, jint height) { if(width>0 && height>0 || x>=0 && y>=0) { // resize/position if requested XWindowChanges xwc; - int flags = 0; + int flags = CWX | CWY; memset(&xwc, 0, sizeof(XWindowChanges)); - if(0<=x && 0<=y) { - flags |= CWX | CWY; - xwc.x=x; - xwc.y=y; - } + xwc.x=x; + xwc.y=y; + if(0