fix for Display.isActive() so that it works as it should on Linux when using Display.setParent()

This commit is contained in:
kappa1 2012-01-22 18:02:34 +00:00
parent 7259a8ac0a
commit 6e76e2c06a
1 changed files with 3 additions and 3 deletions

View File

@ -800,10 +800,10 @@ final class LinuxDisplay implements DisplayImplementation {
relayEventToParent(event_buffer, KeyPressMask);
break;
case LinuxEvent.ButtonPress:
relayEventToParent(event_buffer, KeyPressMask);
if (xembedded) relayEventToParent(event_buffer, KeyPressMask);
break;
case LinuxEvent.ButtonRelease:
relayEventToParent(event_buffer, KeyPressMask);
if (xembedded) relayEventToParent(event_buffer, KeyPressMask);
break;
default:
break;
@ -1038,7 +1038,7 @@ final class LinuxDisplay implements DisplayImplementation {
}
private void setFocused(boolean got_focus, int focus_detail) {
if (focused == got_focus || focus_detail == NotifyDetailNone || focus_detail == NotifyPointer || focus_detail == NotifyPointerRoot || parent != null)
if (focused == got_focus || focus_detail == NotifyDetailNone || focus_detail == NotifyPointer || focus_detail == NotifyPointerRoot || xembedded)
return;
focused = got_focus;