From 8f79ebcd31e0b426fadb4502338b8e681fb21c13 Mon Sep 17 00:00:00 2001 From: brunodev85 Date: Thu, 28 Mar 2024 09:47:01 -0300 Subject: [PATCH] Add workaround for Daggerfall Unity --- app/src/main/java/com/winlator/core/Workarounds.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/winlator/core/Workarounds.java b/app/src/main/java/com/winlator/core/Workarounds.java index 8141aecc..41813ba4 100644 --- a/app/src/main/java/com/winlator/core/Workarounds.java +++ b/app/src/main/java/com/winlator/core/Workarounds.java @@ -10,11 +10,13 @@ public abstract class Workarounds { // Workaround for applications that don't work mouse/keyboard public static void onMapWindow(final WinHandler winHandler, Window window) { final String className = window.getClassName(); - if (className.equals("twfc.exe")) { + if (className.equals("twfc.exe") || + className.equals("daggerfallunity.exe")) { + final boolean reverse = className.equals("twfc.exe"); (new Timer()).schedule(new TimerTask() { @Override public void run() { - winHandler.bringToFront(className, true); + winHandler.bringToFront(className, reverse); } }, 500); }