Revert "fix: Restore the default properties of dialog window so that the max and min buttons can be customized"

This reverts commit bf5155f82b.

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
master
Vlad Zahorodnii 4 years ago
parent e938a569bc
commit 0dd79ddb4a

@ -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;

Loading…
Cancel
Save