Skip to content

Commit

Permalink
JBR-7859 Wayland: Unexpected focus owner set in a Window
Browse files Browse the repository at this point in the history
  • Loading branch information
mkartashev authored and vprovodin committed Dec 6, 2024
1 parent dd86f8a commit 36d1cce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/java.desktop/unix/classes/sun/awt/wl/WLComponentPeer.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,14 @@ public boolean requestFocus(Component lightweightChild, boolean temporary,

if (WLKeyboardFocusManagerPeer.
processSynchronousLightweightTransfer(target, lightweightChild, temporary,
focusedWindowChangeAllowed, time)) {
false, time)) {
return true;
}

Window nativelyFocusableWindow = getNativelyFocusableOwnerOrSelf(target);
int result = WLKeyboardFocusManagerPeer.
shouldNativelyFocusHeavyweight(nativelyFocusableWindow, lightweightChild,
temporary, focusedWindowChangeAllowed,
temporary, false,
time, cause, true);

switch (result) {
Expand Down

0 comments on commit 36d1cce

Please sign in to comment.