From a538d84eb1f6eb258c23b7b0e66286ee2ce3caa8 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 4 Apr 2004 09:34:11 +0000 Subject: [PATCH] Implemented the undecorated flag and reshape on linux --- src/native/linux/org_lwjgl_opengl_Window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/linux/org_lwjgl_opengl_Window.cpp b/src/native/linux/org_lwjgl_opengl_Window.cpp index af07badb..452d9863 100644 --- a/src/native/linux/org_lwjgl_opengl_Window.cpp +++ b/src/native/linux/org_lwjgl_opengl_Window.cpp @@ -205,7 +205,7 @@ static void createWindow(JNIEnv* env, Display *disp, int screen, XVisualInfo *vi attribs.event_mask = ExposureMask | FocusChangeMask | VisibilityChangeMask| StructureNotifyMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask; attribs.background_pixel = 0xFF000000; attribmask = CWColormap | CWBackPixel | CWEventMask; - if (fullscreen) { + if (fullscreen && undecorated) { attribmask |= CWOverrideRedirect; attribs.override_redirect = True; } @@ -227,7 +227,6 @@ static void createWindow(JNIEnv* env, Display *disp, int screen, XVisualInfo *vi XMapRaised(disp, win); waitMapped(disp, win); XClearWindow(disp, win); -// XSetInputFocus(current_disp, current_win, RevertToParent, CurrentTime); XSync(disp, True); } @@ -605,4 +604,5 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nSetVSyncEnabled JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nReshape (JNIEnv *env, jclass clazz, jint x, jint y, jint width, jint height) { + XMoveResizeWindow(current_disp, current_win, x, y, width, height); }