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

Emacs window not having gaps at the edges #13

Open ghost opened 2 years ago

ghost commented 2 years ago

First of all, thank you for releasing the new update. I have this odd bug, which only happens with Emacs, where the window slowly resizes itself after being tiled. I have attached both the video and my current settings.

https://user-images.githubusercontent.com/69988160/174459332-a1df4dc2-5c8d-478f-b2e0-4d2c3b19b384.mp4

ss

ghost commented 2 years ago

Update: it seems to happen with to multiple apps that are tiled on the right side with Emacs on the left, for example dolphin.

ghost commented 2 years ago

Another thing visible in the video is that Emacs does not seem to respect the tiling gap, the window ends up touching the bottom screen border. This might just be a GTK3 issue, I had a similar issue on gnome with a gap extension on GNOME where old GTK apps did not respect the gap, or showed odd behavior.

nclarius commented 2 years ago

I just released an update; please test whether this fixes the problem.

ghost commented 2 years ago

Fixed. Still have emacs borders touching the edges of the screen but I think this may just be a GTK bug

nclarius commented 2 years ago

It should work regardless of which application. To help me debug this, could you please run the following:

kwriteconfig5 --file kwinrc --group Script-tilegaps --key debugMode true
kwriteconfig5 --file kwinrc --group Script-tilegaps --key fullDebugMode true
export QT_LOGGING_RULES='kwin*.debug=true'
qdbus org.kde.KWin /KWin reconfigure
journalctl -g "test" -f 2>&1 | tee tilegaps.log

Then trigger the bug, see if you get any output and if yes, post the contents of the file ~/tilegaps.log here. Thanks.