Bug 484167 - "Virtual Desktop Behaviour" options do not work - it always switches to the activated windows virtual desktop.
Summary: "Virtual Desktop Behaviour" options do not work - it always switches to the a...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 6.0.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-21 14:14 UTC by Hammad R
Modified: 2024-07-14 04:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hammad R 2024-03-21 14:14:39 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
The "Virtual Desktop Behaviour" dropdown option in System Settings->Window Behaviour->"Advanced" tab lists 3 options;

-to switch to a virtual desktop when a window is activated in it (i.e. if a rule is applied to the window to remember or force it's chosen virtual desktop)
-to bring the activated/opened window to the current virtual desktop.
-to do nothing - i.e. to let the window open in its own virtual desktop but not move from the current one - suffice to say the newly activated/opened window won't be visible but this is what we want.

The last 2 options do not work - whatever option is chosen, KWin always moves to the virtual desktop that the window is opened in.

STEPS TO REPRODUCE
1. Make a window rule to force a window to a specific virtual desktop.
2. Change this virtual desktop option to "Do Nothing"
3. Launch the application (I tested with Dolphin file manager which is on my taskbar, and both clicking the icon to launch AND using the Super+Number key to launch it both gave the same effect)
4. Notice that it switches to the Virtual Desktop that the application has launched in.
5. Change the option to "Bring to current desktop" and notice that this also switches to the virtual desktop instead of moving the window. 

OBSERVED RESULT
KWin keeps switching to the virtual desktop of the activated window.

EXPECTED RESULT
The set choice of what to do with the activated window is honoured by KWin. 

SOFTWARE/OS VERSIONS
Linux ver 6.8.1-arch1-1
KDE Plasma ver 6.0.2
KDE Frameworks ver 6.0.0
QT version 6.6.2
Graphics Platform X11

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2024-03-21 17:28:33 UTC
Note that this option is not meant to do what you expect it to do. It controls what happens when an *existing* window is activated, e.g. when clicking on a link to open it in an existing browser window. It does not affect newly launched applications
Comment 2 Hammad R 2024-03-21 18:39:44 UTC
I see, my apologies. Do you know which setting controls that? On Plasma 5 it did not used to switch automatically to a workspace when an application was launched that had a window rule for another virtual desktop, but since upgrading to 6 Plasma now does this and it's annoying.
Comment 3 D1mon 2024-07-14 04:23:37 UTC
Same bug.