From bf5155f82b1655a98311a73fa466484862f1cd09 Mon Sep 17 00:00:00 2001 From: Yu Zhang Date: Fri, 13 Nov 2020 14:21:10 +0800 Subject: [PATCH] fix: Restore the default properties of dialog window so that the max and min buttons can be customized --- x11client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x11client.cpp b/x11client.cpp index 55618ff833..85aa3d341f 100644 --- a/x11client.cpp +++ b/x11client.cpp @@ -1387,6 +1387,8 @@ bool X11Client::isMinimizable() const { if (isSpecialWindow() && !isTransient()) return false; + if (hasNETSupport() && !m_motif.minimize()) + return false; if (!rules()->checkMinimize(true)) return false; @@ -4123,6 +4125,8 @@ bool X11Client::isResizable() const bool X11Client::isMaximizable() const { if (!isResizable() || isToolbar()) // SELI isToolbar() ? + return false; + if (hasNETSupport() && !m_motif.maximize()) return false; if (rules()->checkMaximize(MaximizeRestore) == MaximizeRestore && rules()->checkMaximize(MaximizeFull) != MaximizeRestore) return true;