refactor: 使用 workspace_id_invalid() 替代直接比较 ZDWM_WORKSPACE_ID_INVALID

This commit is contained in:
2026-05-09 04:09:46 +08:00
parent a60d9f31a7
commit 1f4659e7a4
5 changed files with 9 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ static void route_map_request(
bool have_rule_match = rules_resolve(rules, &e->metadata, &action);
if (have_rule_match) {
manage_window_command_t *data = &manage_window_cmd.as.manage_window;
if (action.workspace != ZDWM_WORKSPACE_ID_INVALID) {
if (!workspace_id_invalid(action.workspace)) {
data->workspace = action.workspace;
}
if (action.floating) data->floating = true;