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:
kappa1 2010-10-08 20:19:44 +00:00
parent e2b1e8dbd8
commit a0ee569434
1 changed files with 2 additions and 0 deletions

View File

@ -894,9 +894,11 @@ final class LinuxDisplay implements DisplayImplementation {
if (focused) { if (focused) {
acquireInput(); acquireInput();
if (!xembedded) parent.setFocusable(false);
} }
else { else {
releaseInput(); releaseInput();
if (!xembedded) parent.setFocusable(true);
} }
} }
static native long nGetInputFocus(long display); static native long nGetInputFocus(long display);