Changeset View
Changeset View
Standalone View
Standalone View
libtaskmanager/virtualdesktopinfo.cpp
Show First 20 Lines • Show All 358 Lines • ▼ Show 20 Line(s) | 347 | { | |||
---|---|---|---|---|---|
359 | 359 | | |||
360 | QObject::connect(desktop, &KWayland::Client::PlasmaVirtualDesktop::activated, q, | 360 | QObject::connect(desktop, &KWayland::Client::PlasmaVirtualDesktop::activated, q, | ||
361 | [desktop, this]() { | 361 | [desktop, this]() { | ||
362 | currentVirtualDesktop = desktop->id(); | 362 | currentVirtualDesktop = desktop->id(); | ||
363 | emit currentDesktopChanged(); | 363 | emit currentDesktopChanged(); | ||
364 | } | 364 | } | ||
365 | ); | 365 | ); | ||
366 | 366 | | |||
367 | QObject::connect(desktop, &KWayland::Client::PlasmaVirtualDesktop::done, q, | ||||
368 | [this]() { | ||||
369 | emit desktopNamesChanged(); | ||||
370 | } | ||||
371 | ); | ||||
372 | | ||||
367 | if (desktop->isActive()) { | 373 | if (desktop->isActive()) { | ||
368 | currentVirtualDesktop = id; | 374 | currentVirtualDesktop = id; | ||
369 | emit currentDesktopChanged(); | 375 | emit currentDesktopChanged(); | ||
370 | } | 376 | } | ||
371 | } | 377 | } | ||
372 | 378 | | |||
373 | QVariant VirtualDesktopInfo::WaylandPrivate::currentDesktop() const | 379 | QVariant VirtualDesktopInfo::WaylandPrivate::currentDesktop() const | ||
374 | { | 380 | { | ||
▲ Show 20 Lines • Show All 167 Lines • Show Last 20 Lines |