mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-03 11:59:40 +02:00
fix null pointer exception when creating Display on linux.
This commit is contained in:
parent
fb81ac26ec
commit
2838bb9dec
|
|
@ -894,11 +894,11 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
|
||||
if (focused) {
|
||||
acquireInput();
|
||||
if (!xembedded) parent.setFocusable(false);
|
||||
if (parent != null && !xembedded) parent.setFocusable(false);
|
||||
}
|
||||
else {
|
||||
releaseInput();
|
||||
if (!xembedded) parent.setFocusable(true);
|
||||
if (parent != null && !xembedded) parent.setFocusable(true);
|
||||
}
|
||||
}
|
||||
static native long nGetInputFocus(long display);
|
||||
|
|
|
|||
Loading…
Reference in a new issue