Remove X11Compositor requires compositing check

Summary:
With the split of the Compositor class in X11 and Wayland it is unnecessary
to check in X11Compositor if compositing is required since on X it never is.

Test Plan: Compiles.

Reviewers: #kwin, zzag

Reviewed By: #kwin, zzag

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D23032
This commit is contained in:
Roman Gilg 2019-08-08 16:42:28 +02:00
parent 91faa589c7
commit 8e78ccac46

View file

@ -911,11 +911,6 @@ X11Compositor::X11Compositor(QObject *parent)
void X11Compositor::toggleCompositing() void X11Compositor::toggleCompositing()
{ {
// For the shortcut.
if (kwinApp()->platform()->requiresCompositing()) {
// We are not allowed to turn on/off compositing.
return;
}
if (m_suspended) { if (m_suspended) {
// Direct user call; clear all bits. // Direct user call; clear all bits.
resume(AllReasonSuspend); resume(AllReasonSuspend);
@ -1041,9 +1036,6 @@ void X11Compositor::updateCompositeBlocking()
void X11Compositor::updateClientCompositeBlocking(Client *c) void X11Compositor::updateClientCompositeBlocking(Client *c)
{ {
if (kwinApp()->platform()->requiresCompositing()) {
return;
}
if (c) { if (c) {
if (c->isBlockingCompositing()) { if (c->isBlockingCompositing()) {
// Do NOT attempt to call suspend(true) from within the eventchain! // Do NOT attempt to call suspend(true) from within the eventchain!