diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-02-14 22:27:53 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-02-14 22:27:53 +0000 |
| commit | 8d68d6bfa5c27a7abea0ac52ddd8757581b34e99 (patch) | |
| tree | 6dca764d13a2880a0a7e081091403d35dd9bfe3b /src | |
| parent | 60834a46875587ce011f5134ce4f714b0acc8227 (diff) | |
windowrules: nuke no*request
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/ConfigManager.cpp | 10 | ||||
| -rw-r--r-- | src/events/Windows.cpp | 4 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 97bc647c..f7154e54 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -967,11 +967,11 @@ void CConfigManager::handleUnbind(const std::string& command, const std::string& bool windowRuleValid(const std::string& RULE) { return RULE == "float" || RULE == "tile" || RULE.starts_with("opacity") || RULE.starts_with("move") || RULE.starts_with("size") || RULE.starts_with("minsize") || RULE.starts_with("maxsize") || RULE.starts_with("pseudo") || RULE.starts_with("monitor") || RULE.starts_with("idleinhibit") || RULE == "nofocus" || RULE == "noblur" || - RULE == "noshadow" || RULE == "nodim" || RULE == "noborder" || RULE == "opaque" || RULE == "forceinput" || RULE == "fullscreen" || RULE == "nofullscreenrequest" || - RULE == "nomaximizerequest" || RULE == "fakefullscreen" || RULE == "nomaxsize" || RULE == "pin" || RULE == "noanim" || RULE == "dimaround" || RULE == "windowdance" || - RULE == "maximize" || RULE == "keepaspectratio" || RULE.starts_with("animation") || RULE.starts_with("rounding") || RULE.starts_with("workspace") || - RULE.starts_with("bordercolor") || RULE == "forcergbx" || RULE == "noinitialfocus" || RULE == "stayfocused" || RULE.starts_with("bordersize") || RULE.starts_with("xray") || - RULE.starts_with("center") || RULE.starts_with("group") || RULE == "immediate" || RULE == "nearestneighbor" || RULE.starts_with("suppressevent"); + RULE == "noshadow" || RULE == "nodim" || RULE == "noborder" || RULE == "opaque" || RULE == "forceinput" || RULE == "fullscreen" || RULE == "fakefullscreen" || + RULE == "nomaxsize" || RULE == "pin" || RULE == "noanim" || RULE == "dimaround" || RULE == "windowdance" || RULE == "maximize" || RULE == "keepaspectratio" || + RULE.starts_with("animation") || RULE.starts_with("rounding") || RULE.starts_with("workspace") || RULE.starts_with("bordercolor") || RULE == "forcergbx" || + RULE == "noinitialfocus" || RULE == "stayfocused" || RULE.starts_with("bordersize") || RULE.starts_with("xray") || RULE.starts_with("center") || + RULE.starts_with("group") || RULE == "immediate" || RULE == "nearestneighbor" || RULE.starts_with("suppressevent"); } bool layerRuleValid(const std::string& RULE) { diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 750a18ff..3b8c2f0b 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -176,10 +176,6 @@ void Events::listener_mapWindow(void* owner, void* data) { PWINDOW->m_sAdditionalConfigData.noFocus = true; } else if (r.szRule.starts_with("noinitialfocus")) { PWINDOW->m_bNoInitialFocus = true; - } else if (r.szRule.starts_with("nofullscreenrequest")) { - PWINDOW->m_eSuppressedEvents |= SUPPRESS_FULLSCREEN; - } else if (r.szRule.starts_with("nomaximizerequest")) { - PWINDOW->m_eSuppressedEvents |= SUPPRESS_MAXIMIZE; } else if (r.szRule.starts_with("suppressevent")) { CVarList vars(r.szRule, 0, 's', true); for (size_t i = 1; i < vars.size(); ++i) { |
