Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/xwindowtasksmodel.cpp
Show First 20 Lines • Show All 1193 Lines • ▼ Show 20 Line(s) | 1165 | { | |||
---|---|---|---|---|---|
1194 | 1194 | | |||
1195 | KWindowSystem::setOnDesktop(window, desktop); | 1195 | KWindowSystem::setOnDesktop(window, desktop); | ||
1196 | 1196 | | |||
1197 | if (desktop == KWindowSystem::currentDesktop()) { | 1197 | if (desktop == KWindowSystem::currentDesktop()) { | ||
1198 | KWindowSystem::forceActiveWindow(window); | 1198 | KWindowSystem::forceActiveWindow(window); | ||
1199 | } | 1199 | } | ||
1200 | } | 1200 | } | ||
1201 | 1201 | | |||
1202 | void XWindowTasksModel::requestActivities(const QModelIndex &index, const QStringList &activities) | ||||
1203 | { | ||||
1204 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | ||||
1205 | return; | ||||
1206 | } | ||||
1207 | | ||||
1208 | const WId window = d->windows.at(index.row()); | ||||
1209 | | ||||
1210 | KWindowSystem::setOnActivities(window, activities); | ||||
1211 | } | ||||
1212 | | ||||
1213 | | ||||
1202 | void XWindowTasksModel::requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry, QObject *delegate) | 1214 | void XWindowTasksModel::requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry, QObject *delegate) | ||
1203 | { | 1215 | { | ||
1204 | Q_UNUSED(delegate) | 1216 | Q_UNUSED(delegate) | ||
1205 | 1217 | | |||
1206 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | 1218 | if (!index.isValid() || index.model() != this || index.row() < 0 || index.row() >= d->windows.count()) { | ||
1207 | return; | 1219 | return; | ||
1208 | } | 1220 | } | ||
1209 | 1221 | | |||
Show All 25 Lines |