Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Fixes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
tcorreabr committed Mar 27, 2020
1 parent 0f49567 commit 2aa499a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ You can also invoke the script with: *qdbus org.kde.kglobalaccel /component/kwin
* Not tested on *Wayland*. I'm pretty sure it doesn't work on it.
* If you are going to contribute to the code, please contact me first so that we don't have duplicate work. Unless it's a small contribution.
* If you are using "Slide" animation to switch desktops, you may want to switch to "Desktop Cube Animation" to avoid some [unwanted visual effects](https://github.com/tcorreabr/Parachute/issues/1).
* For now, you have to [click on a empty desktop to show the backgrounds](https://github.com/tcorreabr/Parachute/issues/6).

## Possible improvements

Expand Down
18 changes: 9 additions & 9 deletions contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ Window {
currentScreenItem.height = screenRect.height;

// Get desktop windowId to show backgrounds
let screenModelIndex = clientsByScreen.index(currentScreen, 0);
for (var currentClient = 0; currentClient < clientsByScreen.rowCount(screenModelIndex); currentClient++) {
let clientModelIndex = clientsByScreen.index(currentClient, 0, screenModelIndex);
let client = clientsByScreen.data(clientModelIndex);
if (client.desktopWindow) { //} && client.activities.length === 1) {
// let activityIndex = workspace.activities.indexOf(client.activities[0]);
screensRepeater.itemAt(currentScreen).desktopThumbnail.winId = client.windowId;
}
}
// let screenModelIndex = clientsByScreen.index(currentScreen, 0);
// for (var currentClient = 0; currentClient < clientsByScreen.rowCount(screenModelIndex); currentClient++) {
// let clientModelIndex = clientsByScreen.index(currentClient, 0, screenModelIndex);
// let client = clientsByScreen.data(clientModelIndex);
// if (client.desktopWindow) { //} && client.activities.length === 1) {
// // let activityIndex = workspace.activities.indexOf(client.activities[0]);
// screensRepeater.itemAt(currentScreen).desktopThumbnail.winId = client.windowId;
// }
// }

// Update desktops
for (let currentDesktop = 0; currentDesktop < currentScreenItem.bigDesktopsRepeater.count; currentDesktop++) {
Expand Down

0 comments on commit 2aa499a

Please sign in to comment.