polonium icon indicating copy to clipboard operation
polonium copied to clipboard

Reset layout

Open pjhfggij opened this issue 1 year ago • 12 comments

Is your feature request related to a problem? Please describe. Layouts break frequently - empty "gaps" appear where a window should be. Windows start floating and can't be tiled back. Happens every day in different ways.

Describe the solution you'd like Reset layout in a virtual desktop - clean whatever state is kept for a virtual desktop and retile windows, possibly as close to their current locations as possible.

Describe alternatives you've considered Toggling untile/retile a window doesn't work. I don't know how to approach this.

Additional context This has been happening since the beginning - since switching from bismuth to polonium. I just don't have other alternatives and can't switch to hyprland yet due to lack of displaylink support.

pjhfggij avatar Mar 03 '24 10:03 pjhfggij

Make sure you're running v1.0 from master and give me a log

zeroxoneafour avatar Mar 03 '24 17:03 zeroxoneafour

Sorry, as mentioned in #113 I've tried 1.0, but had to rollback the system. I'm not sure where to find the logs, but they may be saved as I've only rollbacked home subvolume and logs may have been saved by journald.

pjhfggij avatar Mar 04 '24 22:03 pjhfggij

journalctl --user -e --no-pager | grep -i "polonium"

zeroxoneafour avatar Mar 09 '24 20:03 zeroxoneafour

Right now if the layout on a desktop somehow breaks, you can set the kwin layout and then return to the layout you were using. This will basically reset the layout to a clean state. But retiling must be do manually.

CarlosEkisde avatar Mar 28 '24 18:03 CarlosEkisde

Is there still any breakage of the layouts that you are experiencing? I don't want to add a bandaid fix for larger tiling issues. Can you create a bug report if you find any issues with layouts breaking with the latest commits?

zeroxoneafour avatar Apr 03 '24 13:04 zeroxoneafour

These breakages still occur, but not as frequently. Some windows like emacs (which I believe uses XWayland) and fullscreening windows can still break layouts once every 4 days or so - create empty spots or refuse to switch focus correctly. However, it's better than it was before.

pjhfggij avatar Apr 14 '24 16:04 pjhfggij

you can set the kwin layout and then return to the layout you were using

I'm not quite sure what you mean. If a "breakage" happens it tends to linger on virtual desktop indefinitely. I couldn't find any way to reset it and resorted to moving windows to another virtual desktop.

pjhfggij avatar Apr 14 '24 16:04 pjhfggij

many breakages: image image image

pjhfggij avatar May 13 '24 22:05 pjhfggij

So there are no logs still. I guess screenshot proof means I can reopen...? If you've moved to Khronkite, I don't think anyone else is experiencing this level of issues so maybe this is just a "works on my machine" moment.

zeroxoneafour avatar May 14 '24 05:05 zeroxoneafour

So there are no logs still.

Sorry, I don't know why I haven't sent them. journalctl --user -e --no-pager | grep -i "polonium" results in:

May 13 22:13:27 host3 kwin_wayland[2044]: file:///usr/share/kwin/scripts/polonium/contents/code/main.mjs:2746: TypeError: Value is undefined and could not be converted to an object

which repeats about every 10 minutes. Is this of any help? Let me know what else might give us some clues.

If you've moved to Khronkite

I saw you mention Kronkite working on KDE6, but I've just checked the repo and it didn't have any activity for the past 2 years or so? Are you saying that KDE6 has brought some compatibility with older APIs?

pjhfggij avatar May 15 '24 00:05 pjhfggij

I too experience many breakages. This happens, for examples, when windows get opened from other applications and/or when they get closed: the other windows in the desktop doesn't get retiled accordingly to the disappearing of the window. I cannot retile them with the Meta+Shift+Space shortcut; instead, I must move them to another virtual desktop to see the retiled. What often happens, also, is that upon reentering on a virtual desktop I see windows have lost their tiled state and their title bar has appeared; I correct it with the Meta+Shift+Space shortcut, but I have to do it on the correct window, as it seems there's a certain window which lost its state and doesn't let other windows retile.

SamuXzX avatar Jun 13 '24 07:06 SamuXzX

If you've moved to Khronkite

Thank you for suggestion @zeroxoneafour, I've finally made a moved to Krohnkite and these breakages and many other issues with GTK apps, as well some hidden popup windows went away. It's been a great year daily driving polonium since the dramatic dawn of KDE6 API, but I will have to switch, particularly due to these layout breakages that still required me to log back out of KDE altogether.

Krohnkite sadly doesn't have BTree layout yet - polonium got me used to it already, so I've suggested it adding it to Krohnkite.

I saw you mention Kronkite working on KDE6, but I've just checked the repo and it didn't have any activity for the past 2 years or so?

It's been forked by anametologin.

I cannot retile them with the Meta+Shift+Space shortcut; instead, I must move them to another virtual desktop to see the retiled.

Yep, that's exactly what's been happening here as well.

pjhfggij avatar Jun 14 '24 15:06 pjhfggij