Add workaround for Daggerfall Unity

This commit is contained in:
brunodev85 2024-03-28 09:47:01 -03:00
parent 0801cf66d5
commit 8f79ebcd31

View File

@ -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);
}