From 8604e0310691c782c160ba8465d4c71d8ba1348f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 17 Dec 2015 16:11:15 +0100 Subject: [PATCH] [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. --- shell_client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell_client.cpp b/shell_client.cpp index 5959a557a0..954327f6c4 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -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; }