Changeset View
Changeset View
Standalone View
Standalone View
tabbox/clientmodel.cpp
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Line(s) | 197 | case TabBoxConfig::StackingOrderSwitching: { | |||
---|---|---|---|---|---|
223 | } | 223 | } | ||
224 | break; | 224 | break; | ||
225 | } | 225 | } | ||
226 | } | 226 | } | ||
227 | foreach (const QWeakPointer< TabBoxClient > &c, stickyClients) { | 227 | foreach (const QWeakPointer< TabBoxClient > &c, stickyClients) { | ||
228 | m_clientList.removeAll(c); | 228 | m_clientList.removeAll(c); | ||
229 | m_clientList.prepend(c); | 229 | m_clientList.prepend(c); | ||
230 | } | 230 | } | ||
231 | if (tabBox->config().showDesktopMode() == TabBoxConfig::ShowDesktopClient || m_clientList.isEmpty()) { | 231 | if (tabBox->config().clientApplicationsMode() != TabBoxConfig::AllWindowsCurrentApplication | ||
232 | && (tabBox->config().showDesktopMode() == TabBoxConfig::ShowDesktopClient || m_clientList.isEmpty())) { | ||||
232 | QWeakPointer<TabBoxClient> desktopClient = tabBox->desktopClient(); | 233 | QWeakPointer<TabBoxClient> desktopClient = tabBox->desktopClient(); | ||
233 | if (!desktopClient.isNull()) | 234 | if (!desktopClient.isNull()) | ||
234 | m_clientList.append(desktopClient); | 235 | m_clientList.append(desktopClient); | ||
235 | } | 236 | } | ||
236 | reset(); | 237 | reset(); | ||
237 | } | 238 | } | ||
238 | 239 | | |||
239 | void ClientModel::close(int i) | 240 | void ClientModel::close(int i) | ||
Show All 23 Lines |