From d63b3b7846c75efacd6f67ed863841b2e13ba3db Mon Sep 17 00:00:00 2001 From: pfps Date: Sun, 5 Feb 2017 12:40:34 +0000 Subject: [PATCH] change back to prompt buttons grabbing focus from other windows on prompt update --- .../src/main/java/forge/screens/match/CMatchUI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forge-gui-desktop/src/main/java/forge/screens/match/CMatchUI.java b/forge-gui-desktop/src/main/java/forge/screens/match/CMatchUI.java index 23e2ff35852..b954cbc2de6 100644 --- a/forge-gui-desktop/src/main/java/forge/screens/match/CMatchUI.java +++ b/forge-gui-desktop/src/main/java/forge/screens/match/CMatchUI.java @@ -581,10 +581,10 @@ public final class CMatchUI if (toFocus != null) { final Runnable focusRoutine = new Runnable() { @Override public final void run() { - toFocus.requestFocusInWindow(); + toFocus.requestFocus(); // focus here even if another window has focus - shouldn't have to do it this way but some popups grab window focus } }; - if ( FThreads.isGuiThread() ) { //pfps run this now whether in EDT or not so that it doesn't clobber later stuff + if ( FThreads.isGuiThread() ) { // run this now whether in EDT or not so that it doesn't clobber later stuff FThreads.invokeInEdtNowOrLater(focusRoutine); } else { FThreads.invokeInEdtAndWait(focusRoutine);