[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:
parent
7ed4b5ed1a
commit
8604e03106
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue