maurges / dynamic_workspaces

A kwin script that creates and deletes desktops as you move windows on the last one
BSD 3-Clause "New" or "Revised" License
74 stars 8 forks source link

Cant move window to next desktop by keyboard shortcuts. #2

Open linchangyi opened 4 years ago

linchangyi commented 4 years ago

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

maurges commented 4 years ago

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
linchangyi commented 4 years ago

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

maurges commented 4 years ago

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

fabianski7 commented 3 years ago

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.

maurges commented 3 years ago

@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