summaryrefslogtreecommitdiff
path: root/src/config/shared/actions/ConfigActions.cpp
diff options
context:
space:
mode:
authorLichie <90825386+lichie567@users.noreply.github.com>2026-05-03 10:55:47 -0700
committerGitHub <noreply@github.com>2026-05-03 18:55:47 +0100
commit6a7abd00379b4f37b468bc2d0e717d4ba293efe1 (patch)
treed94eb1a5662ddc992d6dd2b3b6dc63aa97135fcc /src/config/shared/actions/ConfigActions.cpp
parent21fa9b2ee27227c964fdeb8090d98255edb89bec (diff)
config/lua: add clear tag api (#14273)
Diffstat (limited to 'src/config/shared/actions/ConfigActions.cpp')
-rw-r--r--src/config/shared/actions/ConfigActions.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config/shared/actions/ConfigActions.cpp b/src/config/shared/actions/ConfigActions.cpp
index 5db1aaf1..7111afd8 100644
--- a/src/config/shared/actions/ConfigActions.cpp
+++ b/src/config/shared/actions/ConfigActions.cpp
@@ -605,6 +605,19 @@ ActionResult Actions::tag(const std::string& tagStr, std::optional<PHLWINDOW> w)
return {};
}
+ActionResult Actions::clearTags(std::optional<PHLWINDOW> w) {
+ auto window = xtract(w);
+ if (!window)
+ return {};
+
+ if (window->m_ruleApplicator->m_tagKeeper.clearTags()) {
+ window->m_ruleApplicator->propertiesChanged(Desktop::Rule::RULE_PROP_TAG);
+ window->updateDecorationValues();
+ }
+
+ return {};
+}
+
ActionResult Actions::swapNext(const bool next, std::optional<PHLWINDOW> w) {
auto window = xtract(w);
if (!window)