Open PapierFliegr opened 7 months ago
This is a limitation of the default shortcuts provided by KWin, I think under the hood it uses the same as Right Click window > More Actions > Move
.
But it can probably achieved by using a KWin script (similar to what I am planning to do with https://github.com/luisbocanegra/plasma-panel-spacer-extended/issues/8). Or with C++ but I would need help if is the only option as I don't know much of that. Though ideally, I would like to keep my plasmoids compilation free where possible.
I think after executing the action of "drag down" or whatever one uses, you could first move the cursor to the middle of the active window and then move the window (or middle of the current screen, should be easier). This should make it way smoother, especially in regards of #19.
At least that's how latte-dock implemented it. When doing the dragging motion, the cursor first jumped down and then it dragged the window.
On Plasma5 there was the hotkey Meta+F6
which moved the cursor to the middle of the screen, but it's not usable here for multiple screens, as the hptkey moved the cursor the the middle of all screens combined.
Not sure, whether something similar exists on Plasma6.
Will check if mouse can be positioned and set to drag with KWin Scripting API.
With v1.6.1 the drag action is very smooth now. I don't think you need to implement the dragging of the top of the window anymore.
Vote to close this issue.
With v1.6.1 the drag action is very smooth now.
Thanks for the feedback!
I don't think you need to implement the dragging of the top of the window anymore.
After some experimenting I was able to move the window to the cursor position but was immediately back to the center if it was moved, so I don't think is possible with just KWin scripting.
But I don't want to give up on this just yet lol, let's keep it open in case someone smarter than me figures out how to add compiled alternative if any, I'll ask for help to KDE devs maybe they could implement an alternative that drags from the top
Currently, when using the option to move a window, the cursor fixes itself to the middle of a window. If the cursor fixed itself to the top of the window, then the motion would be smoother.
Edit: Just noticed Latte-Dock places the cursor to the middle as well, but moves the cursor to the window and not the window to the cursor