Commit 048fe539 authored by Martin Flöser's avatar Martin Flöser
Browse files

Remove asserts from Compositor and wrap Toplevel::compositing() around Workspace::compositing()

BUG: 312712
FIXED-IN: 4.10
REVIEW: 108321
parent 327b346a
......@@ -935,8 +935,7 @@ void Toplevel::damageNotifyEvent(XDamageNotifyEvent* e)
bool Toplevel::compositing() const
{
Compositor *c = Compositor::self();
return c && c->hasScene();
return Workspace::self()->compositing();
}
void Client::damageNotifyEvent(XDamageNotifyEvent* e)
......
......@@ -139,7 +139,6 @@ public:
* @see createCompositor
**/
static Compositor *self() {
Q_ASSERT(s_compositor);
return s_compositor;
}
/**
......
......@@ -525,6 +525,11 @@ public:
return movingClient;
}
/**
* @returns Whether we have a Compositor and it is active (Scene created)
**/
bool compositing() const;
public slots:
// Keybindings
void slotSwitchDesktopNext();
......@@ -745,11 +750,6 @@ private:
static NET::WindowType txtToWindowType(const char* txt);
static bool sessionInfoWindowTypeMatch(Client* c, SessionInfo* info);
/**
* @returns Whether we have a Compositor and it is active (Scene created)
**/
bool compositing() const;
Client* active_client;
Client* last_active_client;
Client* most_recently_raised; // Used ONLY by raiseOrLowerClient()
......
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