Workspace::lowerClientWithinApplication operates on AbstractClient

This commit is contained in:
Martin Gräßlin 2015-09-14 14:47:45 +02:00
parent c4f02a6677
commit e46bf87311
2 changed files with 4 additions and 4 deletions

View file

@ -331,7 +331,7 @@ void Workspace::lowerClient(AbstractClient* c, bool nogroup)
most_recently_raised = 0; most_recently_raised = 0;
} }
void Workspace::lowerClientWithinApplication(Client* c) void Workspace::lowerClientWithinApplication(AbstractClient* c)
{ {
if (!c) if (!c)
return; return;
@ -346,11 +346,11 @@ void Workspace::lowerClientWithinApplication(Client* c)
for (ToplevelList::Iterator it = unconstrained_stacking_order.begin(); for (ToplevelList::Iterator it = unconstrained_stacking_order.begin();
it != unconstrained_stacking_order.end(); it != unconstrained_stacking_order.end();
++it) { ++it) {
Client *client = qobject_cast<Client*>(*it); AbstractClient *client = qobject_cast<AbstractClient*>(*it);
if (!client) { if (!client) {
continue; continue;
} }
if (Client::belongToSameApplication(client, c)) { if (AbstractClient::belongToSameApplication(client, c)) {
unconstrained_stacking_order.insert(it, c); unconstrained_stacking_order.insert(it, c);
lowered = true; lowered = true;
break; break;

View file

@ -484,7 +484,7 @@ private:
void propagateClients(bool propagate_new_clients); // Called only from updateStackingOrder void propagateClients(bool propagate_new_clients); // Called only from updateStackingOrder
ToplevelList constrainedStackingOrder(); ToplevelList constrainedStackingOrder();
void raiseClientWithinApplication(Client* c); void raiseClientWithinApplication(Client* c);
void lowerClientWithinApplication(Client* c); void lowerClientWithinApplication(AbstractClient* c);
bool allowFullClientRaising(const AbstractClient* c, xcb_timestamp_t timestamp); bool allowFullClientRaising(const AbstractClient* c, xcb_timestamp_t timestamp);
bool keepTransientAbove(const AbstractClient* mainwindow, const AbstractClient* transient); bool keepTransientAbove(const AbstractClient* mainwindow, const AbstractClient* transient);
void blockStackingUpdates(bool block); void blockStackingUpdates(bool block);