Skip to content

Commit

Permalink
Work around Delphi focusing a useless window.
Browse files Browse the repository at this point in the history
Delphi sometimes focuses a 0x0 window with the class name
"TApplication". Encountered with Overlord launcher.
  • Loading branch information
madewokherd committed Oct 1, 2024
1 parent d01db2e commit e4e96e4
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 @@ -429,6 +429,19 @@ if (application_name == "xfce4-panel") {
}
}

// Toolkit-specific behaviors

// TOOLKIT: Delphi

root (child_matches(win32_class_name == "TApplication" and toplevel_interactable)) {
// Sometimes, Delphi will focus a 0x0 window with class TApplication instead of an interactable window
delphi_pid_override: child_matches(win32_class_name == "TApplication" and toplevel_interactable).pid;
}

if (win32_class_name == "TMainForm" and visible and root.delphi_pid_override == pid) {
toplevel_interactable: true;
}

// General behaviors:

if (spi_attributes.xalia_ignore)
Expand Down

0 comments on commit e4e96e4

Please # to comment.