Skip to content

Commit

Permalink
main.gudl: Work around Skyrim Launcher focus bug on Wine.
Browse files Browse the repository at this point in the history
  • Loading branch information
madewokherd committed Mar 15, 2024
1 parent d2ccfc4 commit 86ceded
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions xalia/main.gudl
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,19 @@ image (interactable and parent.(dialog and win32_process_name == "SkyrimLauncher
}
}

dialog (win32_process_name == "SkyrimLauncher" and name == "Skyrim") {
if (parent.child_matches(win32_process_name == "SkyrimLauncher" and name == "Skyrim Options" and visible) and active) {
// work around focus sometimes incorrectly reverting to main window on Wine when a sub-subwindow closes
interactable: false;
}
}
dialog (win32_process_name == "SkyrimLauncher" and name == "Skyrim Options" and visible) {
if (parent.child_matches(win32_process_name == "SkyrimLauncher" and name == "Skyrim" and active)) {
// work around focus sometimes incorrectly reverting to main window on Wine when a sub-subwindow closes
interactable: true;
}
}

// APPLICATION: VLC
layered_pane (spi_application.name == "vlc") {
// Buttons along the top of preferences window are checkboxes that do not update the UI on Toggle
Expand Down

0 comments on commit 86ceded

Please sign in to comment.