polonium
polonium copied to clipboard
[Bug]: Tiling doesn't work after coming back from sleep
Before you make the issue, confirm that
- [X] You are running the master build from GitHub actions
- [X] You have read the FAQ and the usage instructions
- [X] You have searched pull requests and issues and have found none similar to your issue
- [X] This problem comes from a failure in the tiling system and not a missing feature
Describe the bug
On a new startup the tiling works as expected. However, when the laptop goes to sleep and the HDMI is detached and re-attached, then the tiling does not work anymore. It will take a reboot of the system to get it fully working again. The tiling doesn't work in the sense that, I can see that there's the tiling frame around a full screen window but when opening a new window, instead of opening side-by-side (as the layout is set to) it will open in full mode on top of the existing one.
To reproduce
- Laptop is newly booted and everything works
- Close the laptop lid and unplug the HDMI
- Open the laptop lid and plug the HDMI back in
- Tiling doesn't work
Expected behavior
The tiling behaviour should be persistent across external monitor changes and sleep.
Log output
$ journalctl --user --no-pager -e | grep -i "polonium"
Jul 14 17:04:20 nazgul kwin_wayland[3750]: file:///home/dan/.local/share/kwin/scripts/polonium/contents/code/main.mjs:1917: TypeError: Value is undefined and could not be converted to an object
Screenshots and videos
No response
Additional context
No response