OSDN Git Service

kwin: fixup build after changes in kdelibs
authorIvailo Monev <xakepa10@laimg.moc>
Fri, 12 Aug 2016 12:14:28 +0000 (12:14 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Fri, 12 Aug 2016 12:14:28 +0000 (12:14 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
kwin/layers.cpp

index cc263d6..f06205c 100644 (file)
@@ -203,9 +203,9 @@ void Workspace::propagateClients(bool propagate_new_clients)
     Xcb::restackWindows(newWindowStack);
 
     int pos = 0;
-    xcb_window_t *cl(NULL);
+    Window *cl(NULL);
     if (propagate_new_clients) {
-        cl = new xcb_window_t[ desktops.count() + clients.count()];
+        cl = new Window[ 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();
@@ -215,7 +215,7 @@ void Workspace::propagateClients(bool propagate_new_clients)
         delete [] cl;
     }
 
-    cl = new xcb_window_t[ stacking_order.count()];
+    cl = new Window[ stacking_order.count()];
     pos = 0;
     for (ToplevelList::ConstIterator it = stacking_order.constBegin(); it != stacking_order.constEnd(); ++it) {
         if ((*it)->isClient())