Implemented the undecorated flag and reshape on linux

This commit is contained in:
Elias Naur 2004-04-04 09:34:11 +00:00
parent 8e6568d3d6
commit a538d84eb1
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}