zeroxoneafour / polonium

Autotile manager for Plasma 6
https://zeroxoneafour.github.io/polonium/
MIT License
954 stars 18 forks source link

[Bug]: Windows appear on wrong virtual desktops #172

Open pjhfggij opened 6 months ago

pjhfggij commented 6 months ago

Before you make the issue, confirm that

Describe the bug

Invisible/minimized tiles from windows on other virtual desktops are appearing when switching between windows on different virtual desktops: image When I try to put it in focus it switches to a window in a completely different virtual desktop. I've been living with this bug ever since polonium came out - I'd be so glad to finally solve it.

To reproduce

I'm really not sure how this can be reproduced. Any hints where to find clues would be very appreciated.

Expected behavior

Only windows visible in the current virtual desktop tile.

Log output

running `journalctl --user --no-pager -e | grep -i "polonium"` was empty?
zeroxoneafour commented 6 months ago

Is it related in any way to #24 possibly? If not and it's an actual tiling issue, read https://zeroxoneafour.github.io/polonium/usage.html#getting-a-log.

pjhfggij commented 6 months ago

Thanks, I've enabled debugging, will restart and wait for the issue to reappear to send back the logs (hopefully they will explain it). #24 looks similar, something is causing layouts to break when switching desktops, but it doesn't happen constantly, it seems like it needs to be a in specific state.

I should have added that this is mostly triggered when switching widows via the "Task Manager" widget (shortcuts Meta+[1-9])

pjhfggij commented 6 months ago

I still can't obtain the log, but I found a better illustration of the problem: a minimized window from another virtual desktop is incorrectly added to the current desktop - if you focus on it (focus down) it will switch to that desktop: image

image