mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 22:53:09 +00:00
make show desktop work
use the kwin effect now, use proper api and never minimize any window
This commit is contained in:
parent
a408c6f41d
commit
6f721b8527
4 changed files with 6 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue