Changeset View
Changeset View
Standalone View
Standalone View
applets/pager/plugin/windowmodel.cpp
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Line(s) | 79 | if (role == AbstractTasksModel::Geometry) { | |||
---|---|---|---|---|---|
117 | 117 | | |||
118 | if ((windowGeo.y() + windowGeo.height()) > desktopGeo.height()) { | 118 | if ((windowGeo.y() + windowGeo.height()) > desktopGeo.height()) { | ||
119 | windowGeo.setHeight(desktopGeo.height() - windowGeo.y()); | 119 | windowGeo.setHeight(desktopGeo.height() - windowGeo.y()); | ||
120 | } | 120 | } | ||
121 | 121 | | |||
122 | return windowGeo; | 122 | return windowGeo; | ||
123 | } else if (role == StackingOrder) { | 123 | } else if (role == StackingOrder) { | ||
124 | #if HAVE_X11 | 124 | #if HAVE_X11 | ||
125 | const QVariantList &winIds = TaskFilterProxyModel::data(index, AbstractTasksModel::LegacyWinIdList).toList(); | 125 | const QVariantList &winIds = TaskFilterProxyModel::data(index, AbstractTasksModel::WinIdList).toList(); | ||
126 | 126 | | |||
127 | if (winIds.count()) { | 127 | if (winIds.count()) { | ||
128 | const WId winId = winIds.at(0).toLongLong(); | 128 | const WId winId = winIds.at(0).toLongLong(); | ||
129 | const int z = d->pagerModel->stackingOrder().indexOf(winId); | 129 | const int z = d->pagerModel->stackingOrder().indexOf(winId); | ||
130 | 130 | | |||
131 | if (z != -1) { | 131 | if (z != -1) { | ||
132 | return z; | 132 | return z; | ||
133 | } | 133 | } | ||
Show All 15 Lines |