fix: Restore the default properties of dialog window so that the max and min buttons can be customized
This commit is contained in:
parent
30f9e2a570
commit
bf5155f82b
1 changed files with 4 additions and 0 deletions
|
@ -1387,6 +1387,8 @@ bool X11Client::isMinimizable() const
|
||||||
{
|
{
|
||||||
if (isSpecialWindow() && !isTransient())
|
if (isSpecialWindow() && !isTransient())
|
||||||
return false;
|
return false;
|
||||||
|
if (hasNETSupport() && !m_motif.minimize())
|
||||||
|
return false;
|
||||||
if (!rules()->checkMinimize(true))
|
if (!rules()->checkMinimize(true))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
@ -4124,6 +4126,8 @@ bool X11Client::isMaximizable() const
|
||||||
{
|
{
|
||||||
if (!isResizable() || isToolbar()) // SELI isToolbar() ?
|
if (!isResizable() || isToolbar()) // SELI isToolbar() ?
|
||||||
return false;
|
return false;
|
||||||
|
if (hasNETSupport() && !m_motif.maximize())
|
||||||
|
return false;
|
||||||
if (rules()->checkMaximize(MaximizeRestore) == MaximizeRestore && rules()->checkMaximize(MaximizeFull) != MaximizeRestore)
|
if (rules()->checkMaximize(MaximizeRestore) == MaximizeRestore && rules()->checkMaximize(MaximizeFull) != MaximizeRestore)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue