linux windows can't be resized now
This commit is contained in:
parent
8cd9882280
commit
36d8f34e86
|
@ -342,6 +342,14 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_Display_nCreate(JNIEnv * env, jclass c
|
||||||
const char * title_str = env->GetStringUTFChars(title, NULL);
|
const char * title_str = env->GetStringUTFChars(title, NULL);
|
||||||
XStoreName(disp, win, title_str);
|
XStoreName(disp, win, title_str);
|
||||||
env->ReleaseStringUTFChars(title, title_str);
|
env->ReleaseStringUTFChars(title, title_str);
|
||||||
|
XSizeHints * size_hints = XAllocSizeHints();
|
||||||
|
size_hints->flags = PMinSize | PMaxSize;
|
||||||
|
size_hints->min_width = width;
|
||||||
|
size_hints->max_width = width;
|
||||||
|
size_hints->min_height = height;
|
||||||
|
size_hints->max_height = height;
|
||||||
|
XSetWMNormalHints(disp, win, size_hints);
|
||||||
|
XFree(size_hints);
|
||||||
XMapRaised(disp, win);
|
XMapRaised(disp, win);
|
||||||
waitMapped(disp, win);
|
waitMapped(disp, win);
|
||||||
if (fullscreen) {
|
if (fullscreen) {
|
||||||
|
|
Loading…
Reference in New Issue