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 New Issue