[Bug] Cycle through preset column widths
Karousel version: 0.13 Plasma version: 6.4.5 X11 / Wayland: Wayland Resolution: 5120x1440
Description: When cycling between 25% and 50% I have to press the keyboard shortcut twice. Doesn't happen with 50% to 75% or other combinations.
I have this issue too, and I notice that it likes to use a different size that is slightly larger than 50%. This is especially noticeable on my system when opening an app for the first time since boot.
I have the same issue. It appears that it's only on one side of cycling, in the other sense it won't do it.
Version
KWin version: 6.5.2 Qt Version: 6.10.0 Qt compile version: 6.10.0 XCB compile version: 1.17.0
Operation Mode: Wayland Karousel: 0.15
I have found a possible workaround for this bug: Try karousel with your display scaling (in KDE display settings) set to 1, or change the preset widths to be measured in pixels instead of percentages. This has worked for me. This bug may be caused by some wacky floating point error involving percentage-based preset-widths and the display scale.
Which keyboard shortcuts cause the problem? If it's Increase column width and Decrease column width, then it may be because Karousel makes additional stops - for example, it may first increase the width from 25% to 25.6% before going to 50% if 25.6% maximizes the width without affecting the visibility of other windows.
This issue affects both the "Increase/Decrease column width" and the "Cycle through preset column widths" (both forward and reverse. This issue only occurs on some windows, the most noticeable being firefox, especially when there are more preset widths (for instance: 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100%) Another weird thing related to this is that when using the percentage preset widths and the "Increase/Decrease column width" controls is that the window sometimes doesn't centre itself afterwards, which is what it usually does.
Karousel preset widths calculator.ods So I've done some fiddling with a spreadsheet to convert width percentages into pixel widths rounded to a multiple determined by you display scale. Hopefully this is a decent enough workaround if you're having trouble with this bug.
@Peteydog thanks for the feedback. I am regularly switching between a laptop screen and external monitor so fixed widths are not a solution for me.