feat(wm): add optional alt focus hack

This commit adds an optional focusing hack using simulated ALT key
presses to ensure that focus changes always succeed. As noted in the
documentation for LockSetForegroundWindow, the system automatically
enables calls to SetForegroundWindow if the user presses the ALT key.
This commit is contained in:
LGUG2Z
2023-01-21 13:29:06 -08:00
parent f8120f6b11
commit 925f3bd87b
9 changed files with 52 additions and 2 deletions

View File

@@ -104,6 +104,7 @@ pub enum SocketMessage {
ReloadConfiguration,
WatchConfiguration(bool),
CompleteConfiguration,
AltFocusHack(bool),
ActiveWindowBorder(bool),
ActiveWindowBorderColour(WindowKind, u32, u32, u32),
ActiveWindowBorderWidth(i32),