https://bugs.kde.org/show_bug.cgi?id=357669

Thomas Lübking <thomas.luebk...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |CONFIRMED
          Component|general                     |decorations
     Ever confirmed|0                           |1

--- Comment #1 from Thomas Lübking <thomas.luebk...@gmail.com> ---
Happens.
The cause is that the unshaded window is first restored, then shadeChanged() is
emitted.
The result is that the bottom border size is reported as 0 by the deco while it
should be more™ (this doesn't impact w/ NoBorders or if the deco doesn't change
the bottom border for shaded windows)

We probably wont get around emitting the signal twice:

diff --git a/client.cpp b/client.cpp
index 2663b00..54f66d1 100644
--- a/client.cpp
+++ b/client.cpp
@@ -812,6 +812,7 @@ void Client::setShade(ShadeMode mode)
         }
     } else {
         shade_geometry_change = true;
+        emit shadeChanged();
         QSize s(sizeForClientSize(clientSize()));
         shade_geometry_change = false;
         plainResize(s);

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to