mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue