Bug 396173 - kwin_x11 --replace ignores other virtual desktops
Summary: kwin_x11 --replace ignores other virtual desktops
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.13.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-04 19:50 UTC by magnus.gross21
Modified: 2023-09-06 10:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
mgraesslin: Wayland-
mgraesslin: X11+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description magnus.gross21 2018-07-04 19:50:20 UTC
I use KDE with `KDEWM=bspwm` for tiling. I also sometimes like to dynamically change between kwin and bspwm on runtime. What was great with KDE is that this worked flawlessly by just using `kwin_x11 --replace`. In KDE 5.12 it did at least, but there seems to be the following regression in KDE 5.13:

When I switch from bspwm to kwin, only the windows on the current bspwm desktop are taken over, the others get lost (they are not accessible at all, don't appear in Latte Dock and they are not there when I switch the desktop in kwin).

Expected Behavior: If I have 2 desktops in bspwm and switch to kwin, it should have the windows from bspwm-desktop #1 in kde-desktop #1 and the windows from bspwm-desktop #2 in kde-desktop #2, like it was in KDE 5.12.

Actual Behavior: KDE just takes over the windows from the current bspwm desktop and discards the windows from all other desktops making them inaccessible.
Comment 1 Michail Vourlakos 2018-07-05 08:48:58 UTC
(In reply to magnus.gross21 from comment #0)
> 
> When I switch from bspwm to kwin, only the windows on the current bspwm
> desktop are taken over, the others get lost (they are not accessible at all,
> don't appear in Latte Dock and they are not there when I switch the desktop
> in kwin).

1. Have you tried to disable in Latte filtering based on desktops that can be found at Tasks configuration tab?
2. Just to confirm, after the switch to kwin the windows for desktop 2 are not accesible in any way e.g. Alt+Tab?
3. If you use ksysguard are the windows that can not be accessed still running or they have been closed during the switch?
Comment 2 magnus.gross21 2018-07-05 15:50:22 UTC
(In reply to Michail Vourlakos from comment #1)
> 1. Have you tried to disable in Latte filtering based on desktops that can
> be found at Tasks configuration tab?
> 2. Just to confirm, after the switch to kwin the windows for desktop 2 are
> not accesible in any way e.g. Alt+Tab?
> 3. If you use ksysguard are the windows that can not be accessed still
> running or they have been closed during the switch?

First, thanks for answering so quickly.

1. Yes, that is the setting that I use Latte all the time with.
2. Yes, the windows are completely lost. They appear neither in Latte nor in Alt+Tab (yes, i made sure alt+tab doesn't filter for desktops or activities)
3. The process is still alive. As such I see it in ksysguard and if I click on `Show Application Window`, the window magically appears on the current desktop and is both visible in Latte and Alt+Tab again.

Note that if I didn't click on `Show Application Window` and the window is still lost in KDE, if I then switch to bspwm with `bspc wm -o`, bspwm will find the lost window again on its own and put it on the current desktop.

I hope that helps, do you have any idea what could be the cause for this?
Comment 3 Michail Vourlakos 2018-07-05 15:57:02 UTC
(In reply to magnus.gross21 from comment #2)
> (In reply to Michail Vourlakos from comment #1)
> I hope that helps, do you have any idea what could be the cause for this?

propably something in KWin behavior but I dont know what. 

It reminds me an issue that I had with upcoming version of Latte. In upcoming version of Latte (v0.8) it is supported different Latte docks at different Activties. Every time an Activity was closed the Latte docks even at other Activities were become invisible. I had to add a workaround internally in Latte code in order to catch the case and enforce to be visible again.
Comment 4 magnus.gross21 2018-07-05 16:26:03 UTC
I didn't know you were the guy from latte. Thank you so much for your dock :)

Well, if you don't know what's the problem, we will have to wait if someone else knows what may be the issue. Otherwise I will have to use `git bisect` to find the problematic commit between 5.12 and 5.13.
Comment 5 David Edmundson 2023-09-06 10:38:36 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.