gerritdevriese / kzones

KDE KWin Script for snapping windows into zones
https://store.kde.org/p/1909220
GNU General Public License v3.0
238 stars 14 forks source link

Does not track moving windows between screens using shortcuts #36

Closed jjspace closed 11 months ago

jjspace commented 1 year ago

I have a two monitor setup and I very often move windows between my screens using shortcuts. By default in Kubuntu 22.04 these are Meta+Shift+Right/Left.

2023-02-07_11-01

Kzones does not seem to be able to track this change and when I try to assign a location for the window using the kzones shortcut it jumps back to the previous screen and location.

For example I have a 2/3rds zone as zone 1 and 1/3rd zone as zone 2 set up horizontally.

  1. Window 1 is on screen 1
  2. Press Meta+Shift+Right to move window 1 to screen 2
  3. Press Ctrl+Alt+Num 2 to put it in zone 2
  4. The window shifts back to screen 1 in zone 2 on that screen
  5. Drag window 1 to screen 2 with the mouse
  6. Press Ctrl+Alt+Num 2 to put it in zone 2
  7. The window aligns into zone 2 on screen 2

Because of #4 this same layout applies to all screens. I'm ok with this fact but I feel that it should always respect the screen the window is currently on. If I move the window across screens with the mouse, whether or not I drag it directly into the OSD zones, it will react as I expect it to using the kzones shortcuts.

trivoldus28 commented 11 months ago

@jjspace Should be fixed now with the merge

jjspace commented 11 months ago

Tested quickly and seems to work as expected. Thank you @trivoldus28!