[kwin] Window -> xcb_window_t or WId

icc-effect-5.14.5
Martin Gräßlin 2013-11-18 13:57:46 +01:00
parent d6a69aea4f
commit ce674ed509
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ public Q_SLOTS:
void screenLockingChanged(); void screenLockingChanged();
private: private:
struct Data { struct Data {
Window window; // thumbnail of this window WId window; // thumbnail of this window
QRect rect; QRect rect;
}; };
long atom; long atom;

View File

@ -212,9 +212,9 @@ void Workspace::propagateClients(bool propagate_new_clients)
Xcb::restackWindows(newWindowStack); Xcb::restackWindows(newWindowStack);
int pos = 0; int pos = 0;
Window *cl(NULL); xcb_window_t *cl(nullptr);
if (propagate_new_clients) { if (propagate_new_clients) {
cl = new Window[ desktops.count() + clients.count()]; cl = new xcb_window_t[ desktops.count() + clients.count()];
// TODO this is still not completely in the map order // TODO this is still not completely in the map order
for (ClientList::ConstIterator it = desktops.constBegin(); it != desktops.constEnd(); ++it) for (ClientList::ConstIterator it = desktops.constBegin(); it != desktops.constEnd(); ++it)
cl[pos++] = (*it)->window(); cl[pos++] = (*it)->window();
@ -224,7 +224,7 @@ void Workspace::propagateClients(bool propagate_new_clients)
delete [] cl; delete [] cl;
} }
cl = new Window[ stacking_order.count()]; cl = new xcb_window_t[ stacking_order.count()];
pos = 0; pos = 0;
for (ToplevelList::ConstIterator it = stacking_order.constBegin(); it != stacking_order.constEnd(); ++it) { for (ToplevelList::ConstIterator it = stacking_order.constBegin(); it != stacking_order.constEnd(); ++it) {
if ((*it)->isClient()) if ((*it)->isClient())