[kwin] Window -> xcb_window_t or WId
This commit is contained in:
parent
d6a69aea4f
commit
ce674ed509
2 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ public Q_SLOTS:
|
|||
void screenLockingChanged();
|
||||
private:
|
||||
struct Data {
|
||||
Window window; // thumbnail of this window
|
||||
WId window; // thumbnail of this window
|
||||
QRect rect;
|
||||
};
|
||||
long atom;
|
||||
|
|
|
@ -212,9 +212,9 @@ void Workspace::propagateClients(bool propagate_new_clients)
|
|||
Xcb::restackWindows(newWindowStack);
|
||||
|
||||
int pos = 0;
|
||||
Window *cl(NULL);
|
||||
xcb_window_t *cl(nullptr);
|
||||
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
|
||||
for (ClientList::ConstIterator it = desktops.constBegin(); it != desktops.constEnd(); ++it)
|
||||
cl[pos++] = (*it)->window();
|
||||
|
@ -224,7 +224,7 @@ void Workspace::propagateClients(bool propagate_new_clients)
|
|||
delete [] cl;
|
||||
}
|
||||
|
||||
cl = new Window[ stacking_order.count()];
|
||||
cl = new xcb_window_t[ stacking_order.count()];
|
||||
pos = 0;
|
||||
for (ToplevelList::ConstIterator it = stacking_order.constBegin(); it != stacking_order.constEnd(); ++it) {
|
||||
if ((*it)->isClient())
|
||||
|
|
Loading…
Reference in a new issue