xdgshellwindow.cpp | xdgshellwindow.cpp | |||
---|---|---|---|---|
skipping to change at line 603 | skipping to change at line 603 | |||
return m_maximizeMode; | return m_maximizeMode; | |||
} | } | |||
MaximizeMode XdgToplevelWindow::requestedMaximizeMode() const | MaximizeMode XdgToplevelWindow::requestedMaximizeMode() const | |||
{ | { | |||
return m_requestedMaximizeMode; | return m_requestedMaximizeMode; | |||
} | } | |||
QSizeF XdgToplevelWindow::minSize() const | QSizeF XdgToplevelWindow::minSize() const | |||
{ | { | |||
return rules()->checkMinSize(m_shellSurface->minimumSize()); | const int enforcedMinimum = m_nextDecoration ? 150 : 20; | |||
return rules()->checkMinSize(QSize(std::max(enforcedMinimum, m_shellSur | ||||
face->minimumSize().width()), std::max(enforcedMinimum, m_shellSurface->min | ||||
imumSize().height()))); | ||||
} | } | |||
QSizeF XdgToplevelWindow::maxSize() const | QSizeF XdgToplevelWindow::maxSize() const | |||
{ | { | |||
return rules()->checkMaxSize(m_shellSurface->maximumSize()); | return rules()->checkMaxSize(m_shellSurface->maximumSize()); | |||
} | } | |||
bool XdgToplevelWindow::isFullScreen() const | bool XdgToplevelWindow::isFullScreen() const | |||
{ | { | |||
return m_isFullScreen; | return m_isFullScreen; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 4 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |