diff options
| author | nyx <nnyyxxxx@protonmail.com> | 2025-03-08 08:20:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-08 14:20:27 +0100 |
| commit | c544c5115c8d35a2212b3dcb93ae90cf8a9f8f0c (patch) | |
| tree | 166dfa8c4053549c909e015e02e9e32c9d88c25b /src/desktop/Window.cpp | |
| parent | b80b64cd6c913f8c8ac820a1e4ca615a62ff958f (diff) | |
windowrules: store floating size on close instead of resize (#9569)
Diffstat (limited to 'src/desktop/Window.cpp')
| -rw-r--r-- | src/desktop/Window.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index b7a3f8f6..7f6ae45d 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -1327,11 +1327,6 @@ void CWindow::clampWindowSize(const std::optional<Vector2D> minSize, const std:: *m_vRealPosition = m_vRealPosition->goal() + DELTA / 2.0; *m_vRealSize = NEWSIZE; - - if (m_bIsFloating && !m_bIsX11 && std::any_of(m_vMatchedRules.begin(), m_vMatchedRules.end(), [](const auto& r) { return r->ruleType == CWindowRule::RULE_PERSISTENTSIZE; })) { - Debug::log(LOG, "clamped window {}::{} to {}x{} (persistentsize)", m_szClass, m_szTitle, m_vRealSize->value().x, m_vRealSize->value().y); - g_pConfigManager->storeFloatingSize(m_pSelf.lock(), m_vRealSize->value()); - } } bool CWindow::isFullscreen() { |
