Commit 8af3eef9 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

[x11] Apply "Block compositing" rule right away

Summary:
When the user changes "Block compositing" rule, apply it immediately.

BUG: 415903

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D26708
parent c7967e25
......@@ -557,7 +557,7 @@ public:
void removeRule(Rules* r);
void setupWindowRules(bool ignore_temporary);
void evaluateWindowRules();
void applyWindowRules();
virtual void applyWindowRules();
virtual void takeFocus() = 0;
virtual bool wantsInput() const = 0;
/**
......
......@@ -4944,4 +4944,10 @@ bool X11Client::hasOffscreenXineramaStrut() const
return !region.isEmpty();
}
void X11Client::applyWindowRules()
{
AbstractClient::applyWindowRules();
setBlockingCompositing(info->isBlockingCompositing());
}
} // namespace
......@@ -109,6 +109,7 @@ public:
void checkGroup(Group* gr = nullptr, bool force = false);
void changeClientLeaderGroup(Group* gr);
void updateWindowRules(Rules::Types selection) override;
void applyWindowRules() override;
void updateFullscreenMonitors(NETFullscreenMonitors topology);
bool hasNETSupport() const;
......
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