From b2c81216a28703d4e7ddd6a6d28f4bbfc4de9fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 24 Jan 2012 17:02:50 +0100 Subject: [PATCH] Update decoration buttons when motif hint on the closability changes BUG: 246422 --- client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.cpp b/client.cpp index 520ed858c0..da0fd466ee 100644 --- a/client.cpp +++ b/client.cpp @@ -2003,9 +2003,12 @@ void Client::getMotifHints() // mminimize; - Ignore, bogus - E.g. shading or sending to another desktop is "minimizing" too // mmaximize; - Ignore, bogus - Maximizing is basically just resizing + const bool closabilityChanged = motif_may_close != mclose; motif_may_close = mclose; // Motif apps like to crash when they set this hint and WM closes them anyway if (isManaged()) updateDecoration(true); // Check if noborder state has changed + if (decoration && closabilityChanged) + decoration->reset(KDecoration::SettingButtons); } void Client::readIcons(Window win, QPixmap* icon, QPixmap* miniicon, QPixmap* bigicon, QPixmap* hugeicon)