Commit 756d8e8c authored by Martin Flöser's avatar Martin Flöser
Browse files

[windowsystem] Implement (un)minimizeWindow through KWayland::Client::PlasmaWindow

Summary: As we have the request nowadays in PlasmaWindow we can expose it.

Reviewers: #plasma_on_wayland

Subscribers: plasma-devel

Tags: #plasma_on_wayland

Differential Revision: https://phabricator.kde.org/D1795
parent cf814d79
......@@ -172,14 +172,20 @@ bool WindowSystem::mapViewport()
void WindowSystem::minimizeWindow(WId win)
{
Q_UNUSED(win)
qCDebug(KWAYLAND_KWS) << "This plugin does not support minimize window";
if (PlasmaWindow *w = window(win)) {
if (!w->isMinimized()) {
w->requestToggleMinimized();
}
}
}
void WindowSystem::unminimizeWindow(WId win)
{
Q_UNUSED(win)
qCDebug(KWAYLAND_KWS) << "This plugin does not support minimizing windows";
if (PlasmaWindow *w = window(win)) {
if (w->isMinimized()) {
w->requestToggleMinimized();
}
}
}
int WindowSystem::numberOfDesktops()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment