diff --git a/layers.cpp b/layers.cpp index b6d5b75f8f..fd33afe2ef 100644 --- a/layers.cpp +++ b/layers.cpp @@ -431,14 +431,14 @@ void Workspace::lowerClientRequest(KWin::Client *c, NET::RequestSource src, xcb_ } -void Workspace::restack(Client* c, Client* under, bool force) +void Workspace::restack(AbstractClient* c, AbstractClient* under, bool force) { assert(unconstrained_stacking_order.contains(under)); - if (!force && !Client::belongToSameApplication(under, c)) { + if (!force && !AbstractClient::belongToSameApplication(under, c)) { // put in the stacking order below _all_ windows belonging to the active application for (int i = 0; i < unconstrained_stacking_order.size(); ++i) { - Client *other = qobject_cast(unconstrained_stacking_order.at(i)); - if (other && other->layer() == c->layer() && Client::belongToSameApplication(under, other)) { + AbstractClient *other = qobject_cast(unconstrained_stacking_order.at(i)); + if (other && other->layer() == c->layer() && AbstractClient::belongToSameApplication(under, other)) { under = (c == other) ? 0 : other; break; } diff --git a/workspace.h b/workspace.h index 4acefb4fc8..a44d88d003 100644 --- a/workspace.h +++ b/workspace.h @@ -50,6 +50,7 @@ namespace Xcb class Window; } +class AbstractClient; class Client; class KillWindow; class ShortcutDialog; @@ -177,7 +178,7 @@ public: void raiseClientRequest(Client* c, NET::RequestSource src, xcb_timestamp_t timestamp); void lowerClientRequest(Client* c, NET::RequestSource src, xcb_timestamp_t timestamp); void restackClientUnderActive(Client*); - void restack(Client *c, Client *under, bool force = false); + void restack(AbstractClient *c, AbstractClient *under, bool force = false); void updateClientLayer(Client* c); void raiseOrLowerClient(Client*); void resetUpdateToolWindowsTimer();