mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-22 08:38:33 +02:00
feat(wm): separate floating and ignored apps
This commit introduces a distinction between ignored applications (previously identified with float_rules) and floating applications. All instances of "float_" with the initial meaning of "ignored" have been renamed with backwards compatibility aliases. Floating applications will be managed under Workspace.floating_windows if identified using a rule, and this allows them to now be moved across workspaces. A new border type has been added for floating applications, and the colour can be configured via theme.floating_border. This interactively rebased commit contains changes from the following individual commits:17ea1e6869feat(wm): separate floating and ignored apps8b344496e6feat(wm): allow ws moves of floating apps7d8e2ad814refactor(wm): float_rules > ignore_rules w/ compatd68346a640fix(borders): no redraws on floating win title changea93e937772fix(borders): update on floating win drag68e9365ddafix(borders): send notif on ignored hwnd events
This commit is contained in:
@@ -583,7 +583,7 @@ macro_rules! gen_application_target_subcommand_args {
|
||||
}
|
||||
|
||||
gen_application_target_subcommand_args! {
|
||||
FloatRule,
|
||||
IgnoreRule,
|
||||
ManageRule,
|
||||
IdentifyTrayApplication,
|
||||
IdentifyLayeredApplication,
|
||||
@@ -1208,9 +1208,10 @@ enum SubCommand {
|
||||
/// Set the operation behaviour when the focused window is not managed
|
||||
#[clap(arg_required_else_help = true)]
|
||||
UnmanagedWindowOperationBehaviour(UnmanagedWindowOperationBehaviour),
|
||||
/// Add a rule to always float the specified application
|
||||
/// Add a rule to ignore the specified application
|
||||
#[clap(arg_required_else_help = true)]
|
||||
FloatRule(FloatRule),
|
||||
#[clap(alias = "float-rule")]
|
||||
IgnoreRule(IgnoreRule),
|
||||
/// Add a rule to always manage the specified application
|
||||
#[clap(arg_required_else_help = true)]
|
||||
ManageRule(ManageRule),
|
||||
@@ -2154,8 +2155,8 @@ Stop-Process -Name:komorebi -ErrorAction SilentlyContinue
|
||||
}
|
||||
}
|
||||
}
|
||||
SubCommand::FloatRule(arg) => {
|
||||
send_message(&SocketMessage::FloatRule(arg.identifier, arg.id))?;
|
||||
SubCommand::IgnoreRule(arg) => {
|
||||
send_message(&SocketMessage::IgnoreRule(arg.identifier, arg.id))?;
|
||||
}
|
||||
SubCommand::ManageRule(arg) => {
|
||||
send_message(&SocketMessage::ManageRule(arg.identifier, arg.id))?;
|
||||
|
||||
Reference in New Issue
Block a user