mirror of
https://github.com/brunodev85/winlator.git
synced 2024-11-23 05:09:38 +00:00
Add workaround for Daggerfall Unity
This commit is contained in:
parent
0801cf66d5
commit
8f79ebcd31
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user