Commit bf5155f8 authored by yu zhang's avatar yu zhang

fix: Restore the default properties of dialog window so that the max and min...

fix: Restore the default properties of dialog window so that the max and min buttons can be customized
parent 30f9e2a5
......@@ -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;
......
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