feat(wm): add mouse follows focus toggle

This commit adds a toggle for the mouse follows focus behaviour that has
been the default for komorebi until now.

resolve #63
This commit is contained in:
LGUG2Z
2021-10-29 10:04:19 -07:00
parent 7fd545ca35
commit a55069df48
10 changed files with 77 additions and 43 deletions
+5
View File
@@ -499,6 +499,8 @@ enum SubCommand {
/// Toggle focus follows mouse for the operating system
#[clap(setting = AppSettings::ArgRequiredElseHelp)]
ToggleFocusFollowsMouse(ToggleFocusFollowsMouse),
/// Toggle mouse follows focus on all workspaces
ToggleMouseFollowsFocus,
/// Generate a library of AutoHotKey helper functions
AhkLibrary,
}
@@ -919,6 +921,9 @@ fn main() -> Result<()> {
SubCommand::Unsubscribe(arg) => {
send_message(&*SocketMessage::RemoveSubscriber(arg.named_pipe).as_bytes()?)?;
}
SubCommand::ToggleMouseFollowsFocus => {
send_message(&*SocketMessage::ToggleMouseFollowsFocus.as_bytes()?)?;
}
}
Ok(())