fixed focus loop when using Display.setParent() on linux, this caused input keys to be missed as the focus shifted from parent to Display and back again.

This commit is contained in:
kappa1 2009-03-09 21:53:11 +00:00
parent 8f91dfcdc7
commit a33207320d
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ final class LinuxDisplay implements DisplayImplementation {
return;
if (focused) {
if (xembedded && !parent_focused && parent_focus_window_valid) {
if (nGetInputFocus(getDisplay()) == current_window) {
if (nGetInputFocus(getDisplay()) != current_window) {
setInputFocusUnsafe(parent_focus_window);
parent_focus_changed = false;
}