From 0dd79ddb4a1d064c59994bbdcf93de52f56b25b1 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 12 Jan 2021 11:01:41 +0200 Subject: [PATCH] Revert "fix: Restore the default properties of dialog window so that the max and min buttons can be customized" This reverts commit bf5155f82b1655a98311a73fa466484862f1cd09. Maximize and minimize function hints provided by some applications are bogus. This in its turn breaks video games that minimize themselves when they loose input focus. Ideally, the window manager should not be concerned about Motif hints provided by NetWM applications as they set the window type. BUG: 431450 --- x11client.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x11client.cpp b/x11client.cpp index 40e646d6e3..466b01116b 100644 --- a/x11client.cpp +++ b/x11client.cpp @@ -1387,8 +1387,6 @@ bool X11Client::isMinimizable() const { if (isSpecialWindow() && !isTransient()) return false; - if (hasNETSupport() && !m_motif.minimize()) - return false; if (!rules()->checkMinimize(true)) return false; @@ -4123,8 +4121,6 @@ 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; return false;