From 75f6435f70dee8f8b685a02c52db7ba16f5db39c Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Thu, 11 Dec 2025 19:54:43 +0100 Subject: window: only damage floating on clamped size change (#12633) currently it damage the entire window if its floating and not x11 nor fullscreen meaning damage isnt working at all for floating. im tracing this back to a364df4 where the logic changed from damaging window only if size was being forced to now unconditonally doing it. change clampWindowSize to return as a bool if size changed and only damage window if it got clamped. --- src/desktop/view/Window.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/desktop/view/Window.hpp') diff --git a/src/desktop/view/Window.hpp b/src/desktop/view/Window.hpp index e1a42eda..d5c86aac 100644 --- a/src/desktop/view/Window.hpp +++ b/src/desktop/view/Window.hpp @@ -286,7 +286,7 @@ namespace Desktop::View { bool onSpecialWorkspace(); void activate(bool force = false); int surfacesCount(); - void clampWindowSize(const std::optional minSize, const std::optional maxSize); + bool clampWindowSize(const std::optional minSize, const std::optional maxSize); bool isFullscreen(); bool isEffectiveInternalFSMode(const eFullscreenMode) const; int getRealBorderSize() const; -- cgit v1.2.3