dynamic_workspaces icon indicating copy to clipboard operation
dynamic_workspaces copied to clipboard

Cant move window to next desktop by keyboard shortcuts.

Open linchangyi opened this issue 4 years ago • 5 comments

After activating this script, I cant move window to next desktop by keyboard shortcuts.

linchangyi avatar Mar 29 '20 01:03 linchangyi

That's odd. Can you give me the script logs? This is a somewhat hard procedure, here are the steps:

  1. Deactivate the script and restart kwin (relogin)
  2. Download the script sources; you can just clone this repo
  3. Open kwin console: open krunner (alt+f2 or alt+space by default) and run wm console
  4. In console click "open" and navigate to the script directory. Go to contents/code and load main.js
  5. Try doing some actions, the more the better: moving between desktops by applet or by hotkeys, moving windows by right-clicking or by hotkeys
  6. Copy everything from the output box and send it as a reply to this issue

maurges avatar Mar 29 '20 05:03 maurges

I opened two window: Chrome and wm console. Every operation below was on the wm console window.

  • Move between desktops by hotkeys(Switch to next desktop then switch back), everything perfect. logs as below:
Not empty: 桌面外壳脚本控制台 — Plasma is there
Not empty: 桌面外壳脚本控制台 — Plasma is there
  • Move window to next desktop by right-clicking then move back, everything perfect. logs as below:
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
  • Move window to next desktop by hotkeys, nothing happend but the window lose focus. logs as below:
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
  • Move window to next desktop by right-clicking, then move window to previous desktop by hotkeys, everything perfect. logs as below:
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

linchangyi avatar Mar 29 '20 11:03 linchangyi

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

maurges avatar Mar 29 '20 12:03 maurges

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 avatar Jan 31 '21 22:01 fabianski7

@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

maurges avatar Feb 01 '21 04:02 maurges