Open linchangyi opened 4 years ago
That's odd. Can you give me the script logs? This is a somewhat hard procedure, here are the steps:
wm console
contents/code
and load main.js
I opened two window: Chrome
and wm console
. Every operation below was on the wm console
window.
Not empty: 桌面外壳脚本控制台 — Plasma is there
Not empty: 桌面外壳脚本控制台 — Plasma is there
Client 桌面外壳脚本控制台 — Plasma just moved
to desktop number 2 out of 2
added a desktop
Not empty: Cant move window to next desktop by keyboard shortcuts. · Issue #2 · d86leader/dynamic_workspaces - Google Chrome is there
Not empty: 桌面外壳脚本控制台 — Plasma is there
deleted last desktop
Client 桌面外壳脚本控制台 — Plasma just moved
to desktop number 1 out of 3
deleted last desktop
Client 桌面外壳脚本控制台 — Plasma just moved
to desktop number 1 out of 3
Not empty: 桌面外壳脚本控制台 — Plasma is there
Client 桌面外壳脚本控制台 — Plasma just moved
to desktop number 2 out of 2
added a desktop
Not empty: 桌面外壳脚本控制台 — Plasma is there
Not empty: 桌面外壳脚本控制台 — Plasma is there
Client 桌面外壳脚本控制台 — Plasma just moved
to desktop number 2 out of 2
added a desktop
Not empty: Cant move window to next desktop by keyboard shortcuts. · Issue #2 · d86leader/dynamic_workspaces - Google Chrome is there
deleted last desktop
Client 桌面外壳脚本控制台 — Plasma just moved
to desktop number 1 out of 3
Not empty: 桌面外壳脚本控制台 — Plasma is there
That's really strange. I'm sorry, but I don't think there's anything I can do: KDE API can just do weird things sometimes. I've had some similar strange bugs on my machine, and I fixed them by just rewriting everything in another architecture and it just magically started to work. If you want, you can try an older version before major rewrite. It's buggy and the code is bad and it might not work; here's the commit link: https://github.com/d86leader/dynamic_workspaces/commit/636b2312bbc742306b40bf28287af1814345f544
Using plasma and kwin 5.20.90, I can move the windows through the default shortcut (shitft+ctrl+super+➡️) to the next workspace without any problems.
@fabianski7 me too, although I use non-default shortcuts. For me it's been working since plasma 5.9 to 5.20. So this is a really weird issue
After activating this script, I cant move window to next desktop by keyboard shortcuts.