mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
fix null pointer exception when creating Display on linux.
This commit is contained in:
parent
fb81ac26ec
commit
2838bb9dec
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue