karousel icon indicating copy to clipboard operation
karousel copied to clipboard

[Bug] Focus missing after closing window with 100% width

Open rReyvn opened this issue 2 months ago • 5 comments

Karousel version: 0.14 Plasma version: 6.5.1 X11 / Wayland: Wayland

Description: Only window with 100% width have a problem, its fine for any other window below 100%. Seems like the current method for switching focus to another window is only when there is window visible? What i expect is when closing window, focus should be switch to next/previous window instead.

https://github.com/user-attachments/assets/2d9d183e-8ef8-4b55-8cd1-58d08be30d47

rReyvn avatar Nov 03 '25 22:11 rReyvn

+1 Currently, my go-to solution is to set the default width of windows to both 50% and 99%. This way, when a window with a width of 99% is closed, focus automatically shifts back to the adjacent window that has its outline visible.

sf467 avatar Nov 20 '25 09:11 sf467

+1 Currently, my go-to solution is to set the default width of windows to both 50% and 99%. This way, when a window with a width of 99% is closed, focus automatically shifts back to the adjacent window that has its outline visible.

Thanks for the solution! i don't know why i didn't think about this workaround before

rReyvn avatar Nov 21 '25 12:11 rReyvn

Thanks for the report!

@rReyvn @sf467 May I ask for your Karousel settings under the Parameters tab?

peterfajdiga avatar Nov 23 '25 11:11 peterfajdiga

Hello, Here's my setting. Image

rReyvn avatar Nov 24 '25 16:11 rReyvn

Thank you. I can reproduce the bug on Kubuntu, Wayland, Plasma 6.4.5.

The bug seems to stem from a difference in the order that signals are fired in different Kwin versions. I've possibly introduced the bug in 195f4e6d30b5991206e31b17363dbf367eb4252e.

I need to figure out a way to make focus passing work regardless of the order that signals are fired.

peterfajdiga avatar Nov 27 '25 18:11 peterfajdiga