Commit 0dd79ddb authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Revert "fix: Restore the default properties of dialog window so that the max...

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

This reverts commit bf5155f8.

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
parent e938a569
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment