Skip to content

Commit 8f79ebc

Browse files
committed
Add workaround for Daggerfall Unity
1 parent 0801cf6 commit 8f79ebc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/com/winlator/core/Workarounds.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ public abstract class Workarounds {
1010
// Workaround for applications that don't work mouse/keyboard
1111
public static void onMapWindow(final WinHandler winHandler, Window window) {
1212
final String className = window.getClassName();
13-
if (className.equals("twfc.exe")) {
13+
if (className.equals("twfc.exe") ||
14+
className.equals("daggerfallunity.exe")) {
15+
final boolean reverse = className.equals("twfc.exe");
1416
(new Timer()).schedule(new TimerTask() {
1517
@Override
1618
public void run() {
17-
winHandler.bringToFront(className, true);
19+
winHandler.bringToFront(className, reverse);
1820
}
1921
}, 500);
2022
}

0 commit comments

Comments
 (0)