[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
This commit is contained in:
Vlad Zahorodnii 2020-01-16 15:58:49 +02:00
parent c7967e25c3
commit 8af3eef9cd
3 changed files with 8 additions and 1 deletions

View file

@ -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;
/**

View file

@ -4944,4 +4944,10 @@ bool X11Client::hasOffscreenXineramaStrut() const
return !region.isEmpty();
}
void X11Client::applyWindowRules()
{
AbstractClient::applyWindowRules();
setBlockingCompositing(info->isBlockingCompositing());
}
} // namespace

View file

@ -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;