Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/desktop/rule/windowRule/WindowRuleApplicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ CWindowRuleApplicator::SRuleResult CWindowRuleApplicator::applyStaticRule(const
break;
}
case WINDOW_RULE_EFFECT_MOVE: {
static_.center = false;
static_.position = effect;
break;
}
Expand All @@ -489,6 +490,7 @@ CWindowRuleApplicator::SRuleResult CWindowRuleApplicator::applyStaticRule(const
break;
}
case WINDOW_RULE_EFFECT_CENTER: {
static_.position.clear();
static_.center = truthy(effect);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/desktop/rule/windowRule/WindowRuleApplicator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ namespace Desktop::Rule {
bool pseudo = false;
bool pin = false;
bool noInitialFocus = false;
bool center = false;

std::optional<int> fullscreenStateClient;
std::optional<int> fullscreenStateInternal;
std::optional<int> center;
std::optional<int> content;
std::optional<int> noCloseFor;

Expand Down
Loading