Commit 9a965405 authored by Martin Flöser's avatar Martin Flöser

Support updating deco for changes of borderless maximize windows config

Summary: So far only updated the Clients, now also ShellClient.

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D8095
parent 049b34c0
......@@ -1797,4 +1797,9 @@ void AbstractClient::setOnActivities(QStringList newActivitiesList)
Q_UNUSED(newActivitiesList)
}
void AbstractClient::checkNoBorder()
{
setNoBorder(false);
}
}
......@@ -460,6 +460,7 @@ public:
virtual QRect iconGeometry() const;
virtual bool userCanSetFullScreen() const = 0;
virtual bool userCanSetNoBorder() const = 0;
virtual void checkNoBorder();
virtual void setOnActivities(QStringList newActivitiesList);
virtual void setOnAllActivities(bool set) = 0;
const WindowRules* rules() const {
......
......@@ -162,7 +162,7 @@ public:
bool noBorder() const override;
void setNoBorder(bool set) override;
bool userCanSetNoBorder() const override;
void checkNoBorder();
void checkNoBorder() override;
int sessionStackingOrder() const;
......
......@@ -865,8 +865,8 @@ void Workspace::slotReconfigure()
!options->borderlessMaximizedWindows()) {
// in case borderless maximized windows option changed and new option
// is to have borders, we need to unset the borders for all maximized windows
for (ClientList::Iterator it = clients.begin();
it != clients.end();
for (auto it = m_allClients.begin();
it != m_allClients.end();
++it) {
if ((*it)->maximizeMode() == MaximizeFull)
(*it)->checkNoBorder();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment