[wayland] Properly implement userCanSetNoBorder in ShellClient

Only for server side decorations it's possible to set no border and
in that case it should have same checks as Client.
This commit is contained in:
Martin Gräßlin 2015-12-17 16:11:15 +01:00
parent 7ed4b5ed1a
commit 8604e03106

View file

@ -640,6 +640,9 @@ bool ShellClient::userCanSetFullScreen() const
bool ShellClient::userCanSetNoBorder() const
{
if (m_serverDecoration && m_serverDecoration->mode() == ServerSideDecorationManagerInterface::Mode::Server) {
return !isFullScreen() && !isShade() && !tabGroup();
}
return false;
}