Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 596 Lines • ▼ Show 20 Line(s) | 596 | if ((b && isOnAllDesktops()) || | |||
---|---|---|---|---|---|
597 | (!b && !isOnAllDesktops())) | 597 | (!b && !isOnAllDesktops())) | ||
598 | return; | 598 | return; | ||
599 | if (b) | 599 | if (b) | ||
600 | setDesktop(NET::OnAllDesktops); | 600 | setDesktop(NET::OnAllDesktops); | ||
601 | else | 601 | else | ||
602 | setDesktop(VirtualDesktopManager::self()->current()); | 602 | setDesktop(VirtualDesktopManager::self()->current()); | ||
603 | } | 603 | } | ||
604 | 604 | | |||
605 | QList<int> AbstractClient::x11DesktopIds() const | 605 | QVector<int> AbstractClient::x11DesktopIds() const | ||
606 | { | 606 | { | ||
607 | const auto desks = desktops(); | 607 | const auto desks = desktops(); | ||
608 | QList<int> x11Ids; | 608 | QVector<int> x11Ids; | ||
609 | x11Ids.reserve(desks.count()); | 609 | x11Ids.reserve(desks.count()); | ||
610 | std::transform(desks.constBegin(), desks.constEnd(), | 610 | std::transform(desks.constBegin(), desks.constEnd(), | ||
611 | std::back_inserter(x11Ids), | 611 | std::back_inserter(x11Ids), | ||
612 | [] (const VirtualDesktop *vd) { | 612 | [] (const VirtualDesktop *vd) { | ||
613 | return vd->x11DesktopNumber(); | 613 | return vd->x11DesktopNumber(); | ||
614 | } | 614 | } | ||
615 | ); | 615 | ); | ||
616 | return x11Ids; | 616 | return x11Ids; | ||
▲ Show 20 Lines • Show All 1395 Lines • Show Last 20 Lines |