nclarius / tile-gaps

KWin script to add space around windows touching a screen edge or other window
https://store.kde.org/p/1619642
GNU General Public License v3.0
108 stars 17 forks source link

Windows resize while moving them around #15

Open hirad1986 opened 2 years ago

hirad1986 commented 2 years ago

When the script is enabled, whenever I want move the window around (either by the titlebar or holding the meta key and dragging it from any place), the window resizes. Using Arch Linux, Plasma 5.25.1 and tried both git and version 7.1 https://user-images.githubusercontent.com/95542349/175828791-5f87c80b-ef76-4b2b-8dfb-93d487fdb218.mp4

twocore commented 2 years ago

I can confirm this on Manjaro KDE with Plasma 5.24.5 / KDE Framework 5.95 & QT 5.15.5. If the script is activated, the windows changes their size while moving them. If i changed Gaps on from all do none, the shrinking no longer occurs.

Output from journalctl (Dolphin moved around):

Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1796 953 2749 y 1781 628 2409
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1796 953 2749 y 1781 628 2409
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1797 953 2750 y 1782 628 2410
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1797 953 2750 y 1782 628 2410
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1797 953 2750 y 1783 628 2411
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1797 953 2750 y 1783 628 2411
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1797 953 2750 y 1784 628 2412
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1797 953 2750 y 1784 628 2412
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1798 953 2751 y 1786 628 2414
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1798 953 2751 y 1786 628 2414
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1798 953 2751 y 1787 628 2415
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1798 953 2751 y 1787 628 2415
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1799 953 2752 y 1788 628 2416
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1799 953 2752 y 1788 628 2416
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1799 953 2752 y 1789 628 2417
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1799 953 2752 y 1789 628 2417
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1799 953 2752 y 1790 628 2418
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1799 953 2752 y 1790 628 2418
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1799 953 2752 y 1791 628 2419
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1799 953 2752 y 1791 628 2419
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1800 953 2753 y 1791 628 2419
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1800 953 2753 y 1791 628 2419
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1800 953 2753 y 1792 628 2420
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1800 953 2753 y 1792 628 2420
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: client geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1800 953 2753 y 1793 628 2421
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps:
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: frame geometry changed Downloads — Dolphin
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: gaps for Downloads — Dolphin x 1800 953 2753 y 1793 628 2421
Jul 04 14:02:16 flounder kwin_x11[852]: js: tilegaps: area x 1 3440 3441 y 1472 1408 2880
robinsrk commented 2 years ago

I am also facing the same issue. Any trick to fix the issue? or have to wait for update?

cazacugmihai commented 2 years ago

I also have this issue.

Distributor ID: Neon Description: KDE neon User - 5.25 Release: 20.04 Windows Gaps 7.1

LiYulin-s commented 2 years ago

I am facing the same problem.

Using Archlinux with Plasma 5.25.4,Windows Gaps 7.1.

enly1 commented 2 years ago

And another on KDE Neon: OS: KDE neon User - 5.25 x86_64, Window Gaps 7.1

pdimens commented 2 years ago

+1 to experiencing this on Manjaro + KDE

ghost commented 2 years ago

same here on debian sid

nclarius commented 2 years ago

Thanks for the report, and sorry for the long inactivity. It should be fixed with the update I just released. If not, please reopen this thread.

robinsrk commented 1 year ago

Still facing the issue. and another thing is window isn't maximized. i mean i have hidden the titlebar on maximized window. but it shows when i use this module and try to maximize any window.

MathisP75 commented 1 year ago

I am still facing this issue, but it occurs when moving the window near the edges of the screen. The window snaps to the gap and gets resized.

MathisP75 commented 1 year ago

https://youtu.be/qU9SJVJcYF8 Here, I made a video

MathisP75 commented 1 year ago

I think I fixed it by removing the trigger "client.frameGeometryChanged". I don't know if it's gonna cause other problems, I will see.

Edit: I noticed the gaps don't apply when the window is tiled using shortcuts. There is 100% a work around this because I had another script that did it but only with shortcuts.

gazsp commented 1 year ago

Same issue here. Debian 12 (bookworm), Plasma 5.27.2.