Changeset View
Changeset View
Standalone View
Standalone View
src/windowsystem/windowsystem.cpp
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Line(s) | |||||
143 | QPoint WindowSystem::desktopToViewport(int desktop, bool absolute) | 143 | QPoint WindowSystem::desktopToViewport(int desktop, bool absolute) | ||
144 | { | 144 | { | ||
145 | Q_UNUSED(desktop) | 145 | Q_UNUSED(desktop) | ||
146 | Q_UNUSED(absolute) | 146 | Q_UNUSED(absolute) | ||
147 | qCDebug(KWAYLAND_KWS) << "This plugin does not support viewport positions"; | 147 | qCDebug(KWAYLAND_KWS) << "This plugin does not support viewport positions"; | ||
148 | return QPoint(); | 148 | return QPoint(); | ||
149 | } | 149 | } | ||
150 | 150 | | |||
151 | #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 0) | ||||
151 | WId WindowSystem::groupLeader(WId window) | 152 | WId WindowSystem::groupLeader(WId window) | ||
152 | { | 153 | { | ||
153 | Q_UNUSED(window) | 154 | Q_UNUSED(window) | ||
154 | qCDebug(KWAYLAND_KWS) << "This plugin does not support group leader"; | 155 | qCDebug(KWAYLAND_KWS) << "This plugin does not support group leader"; | ||
155 | return 0; | 156 | return 0; | ||
156 | } | 157 | } | ||
158 | #endif | ||||
157 | 159 | | |||
158 | bool WindowSystem::icccmCompliantMappingState() | 160 | bool WindowSystem::icccmCompliantMappingState() | ||
159 | { | 161 | { | ||
160 | return false; | 162 | return false; | ||
161 | } | 163 | } | ||
162 | 164 | | |||
163 | QPixmap WindowSystem::icon(WId win, int width, int height, bool scale, int flags) | 165 | QPixmap WindowSystem::icon(WId win, int width, int height, bool scale, int flags) | ||
164 | { | 166 | { | ||
▲ Show 20 Lines • Show All 349 Lines • ▼ Show 20 Line(s) | 511 | { | |||
514 | const auto &windows = WaylandIntegration::self()->plasmaWindowManagement()->windows(); | 516 | const auto &windows = WaylandIntegration::self()->plasmaWindowManagement()->windows(); | ||
515 | QList<WId> ret; | 517 | QList<WId> ret; | ||
516 | for (auto w : windows) { | 518 | for (auto w : windows) { | ||
517 | ret << w->internalId(); | 519 | ret << w->internalId(); | ||
518 | } | 520 | } | ||
519 | return ret; | 521 | return ret; | ||
520 | } | 522 | } | ||
521 | 523 | | |||
524 | #if KWINDOWSYSTEM_BUILD_DEPRECATED_SINCE(5, 0) | ||||
522 | WId WindowSystem::transientFor(WId window) | 525 | WId WindowSystem::transientFor(WId window) | ||
523 | { | 526 | { | ||
524 | Q_UNUSED(window) | 527 | Q_UNUSED(window) | ||
525 | qCDebug(KWAYLAND_KWS) << "This plugin does not support transient for windows"; | 528 | qCDebug(KWAYLAND_KWS) << "This plugin does not support transient for windows"; | ||
526 | return 0; | 529 | return 0; | ||
527 | } | 530 | } | ||
531 | #endif | ||||
528 | 532 | | |||
529 | int WindowSystem::viewportToDesktop(const QPoint &pos) | 533 | int WindowSystem::viewportToDesktop(const QPoint &pos) | ||
530 | { | 534 | { | ||
531 | Q_UNUSED(pos) | 535 | Q_UNUSED(pos) | ||
532 | qCDebug(KWAYLAND_KWS) << "This plugin does not support viewports"; | 536 | qCDebug(KWAYLAND_KWS) << "This plugin does not support viewports"; | ||
533 | return 0; | 537 | return 0; | ||
534 | } | 538 | } | ||
535 | 539 | | |||
Show All 26 Lines |