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
104 stars 16 forks source link

Windows width expanding outside of screen #20

Open mrhll opened 1 year ago

mrhll commented 1 year ago

On the v7.1, applying gaps on all sides + maximazed windows makes the windows having incorrect width and expanding outside of the screen on right edge (height is OK), this for maximized and tiled windows. Installed v6.14 znd works as expected. Plasma 5.26.3 on Arch

nclarius commented 1 year ago

Thanks for the report. The most recent update should fix this problem. If not, please let me know.

mrhll commented 1 year ago

sorry, this fix has fully broken the gaps completely :) No more gaps, anywhere ...

nclarius commented 1 year ago

Could you please post the output of

journalctl -b | grep "tilegaps" | head  
nclarius commented 1 year ago

... after running

kwriteconfig5 --file kwinrc --group Script-tilegaps --key debugMode true
kwriteconfig5 --file kwinrc --group Script-tilegaps --key fullDebugMode true
qdbus org.kde.KWin /KWin reconfigure

and possibly logging out and in again before trying to get the debug output.

mrhll commented 1 year ago

Hi, ensured script enabled and reset to defaults, rebooted, updated the debug flags given, played with tiling few bits, still no gaps, running journalctl cmd outputs nothing ...

nclarius commented 1 year ago

If you're not getting any output, try adding

export QT_LOGGING_RULES="kwin_*.debug=true"

to your ~/.bash_profile or /etc/environent and relogin.

If you're on Wayland, it will also be necessary to have Plasma systemd boot enabled (this is the default since Plasma 5.25).

Sorry about the complications - I'm using the same distro and Plasma version and tested with different gap sizes and it all works fine on my setup, so it's going to be hard to find out what's wrong without debug information.

mrhll commented 1 year ago

Actually using zsh and emptty login manager, mesa drivers, will check this later on and getback soon, thank you for your help :)

mrhll commented 1 year ago

Systemd boot is enabled, using wayland added QT_LOGGING_RULES to /etc/environment ... Still nothing in journalctl :(

nclarius commented 1 year ago

Hm, that's strange. I asked in the KWin development chat group what else we could try.

Meanwhile, could you delete ~/.local/share/kwin/scripts/tilegaps/, reinstall the script, and verify that the version is 8.0 with the info button in the entry in KWin scripts system settings. The recent version also included a change in the metadata format, maybe your system is still somehow stuck on an old version of the package that's causing problems.

nclarius commented 1 year ago

Another user reported that the newest version works fine on their system, so it's not the case that the uploaded package is completely broken.

mrhll commented 1 year ago

created a fresh new user and installed the script ... works on X but not on wayland

nclarius commented 1 year ago

Well that's a start. Unfortunately it seems logging is broken on Wayland, so debugging it is going to be hard. But I'll see what I can do. Thanks for your help in getting this sorted out so far.

nclarius commented 1 year ago

Can confirm neither the log output nor the script works for me on Wayland. I'll look into it.