Commit 6f721b85 authored by Marco Martin's avatar Marco Martin

make show desktop work

use the kwin effect now, use proper api
and never minimize any window
parent a408c6f4
......@@ -55,7 +55,6 @@ FullScreenPanel {
scrollAnim.from = tasksView.contentY;
scrollAnim.to = 0;
scrollAnim.running = true;
plasmoid.nativeInterface.requestShowingDesktop(true);
}
function hide() {
scrollAnim.from = tasksView.contentY;
......@@ -200,8 +199,8 @@ FullScreenPanel {
iconSource: "go-home"
onClicked: {
currentTaskIndex = -1;
plasmoid.nativeInterface.requestShowingDesktop(true);
window.hide();
plasmoid.nativeInterface.showDesktop = true;
}
}
}
......@@ -104,6 +104,7 @@ PlasmaCore.ColorScope {
enabled: taskSwitcher.tasksCount > 0;
iconSource: "window-list"
onClicked: {
plasmoid.nativeInterface.showDesktop = false;
taskSwitcher.visible ? taskSwitcher.hide() : taskSwitcher.show();
}
onPressed: mainMouseArea.managePressed(mouse);
......@@ -120,11 +121,8 @@ PlasmaCore.ColorScope {
enabled: taskSwitcher.tasksCount > 0
checkable: true
onCheckedChanged: {
if (checked) {
root.taskSwitcher.setSingleActiveWindow(-1);
} else {
root.taskSwitcher.setSingleActiveWindow(root.taskSwitcher.currentTaskIndex);
}
taskSwitcher.hide();
plasmoid.nativeInterface.showDesktop = checked;
}
onPressed: mainMouseArea.managePressed(mouse);
onPositionChanged: mainMouseArea.positionChanged(mouse);
......
......@@ -6,6 +6,7 @@ Type=Service
X-KDE-ServiceTypes=Plasma/Applet,Plasma/Containment
X-Plasma-API=declarativeappletscript
X-KDE-Library=plasma_containment_phone_taskpanel
X-KDE-PluginInfo-Author=Marco Martin
X-KDE-PluginInfo-Category=Containments
X-KDE-PluginInfo-Email=mart@kde.org
......
......@@ -50,6 +50,7 @@ TaskPanel::~TaskPanel()
void TaskPanel::requestShowingDesktop(bool showingDesktop)
{
qWarning()<<"AAAA"<<showingDesktop<<m_windowManagement;
if (!m_windowManagement) {
return;
}
......
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