fix for focus issues with Display.setParent on linux when using it as a non applet. Thx to MatthiasM for finding this and providing a small test case.
This commit is contained in:
parent
e2b1e8dbd8
commit
a0ee569434
|
@ -894,9 +894,11 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
|
||||
if (focused) {
|
||||
acquireInput();
|
||||
if (!xembedded) parent.setFocusable(false);
|
||||
}
|
||||
else {
|
||||
releaseInput();
|
||||
if (!xembedded) parent.setFocusable(true);
|
||||
}
|
||||
}
|
||||
static native long nGetInputFocus(long display);
|
||||
|
|
Loading…
Reference in New Issue