Bug 501676 - Selecting an inactive window's titlebar lowers it, if Titlebar and Frame Actions > Inactive Left click has been changed to "Activate"
Summary: Selecting an inactive window's titlebar lowers it, if Titlebar and Frame Acti...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: core (other bugs)
Version First Reported In: 6.3.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-18 04:48 UTC by Chris Moore
Modified: 2025-04-30 15:31 UTC (History)
3 users (show)

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


Attachments
kwinrc (369 bytes, text/plain)
2025-03-18 04:48 UTC, Chris Moore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Moore 2025-03-18 04:48:44 UTC
Created attachment 179527 [details]
kwinrc

SUMMARY

I configure kwin so that I have control of the Z order more manually (see attached kwinrc).

From the window behaviour panel, I unset 'click raises active window' in 'focus'.
In 'titlebar actions', I change the active window left click to 'Do Nothing' and the inactive window left click to 'Activate'.
In 'window actions', for 'inactive inner window actions', I change left click to 'activate and pass click'.

In previous versions, this works as expected - clicking an inactive window by titlebar or within the window frame does not change the Z order (I normally configure the mouse wheel on titlebar to raise/lower after this works).

Now in 6.3.3 clicking an inactive window titlebar actually lowers the window. This is quite frustrating when trying to manage windows.

STEPS TO REPRODUCE
1.  configure as above
2. open some windows
3. click on the titlebar of an inactive window

OBSERVED RESULT
The inactive window is lowered (sent to back)

EXPECTED RESULT
The inactive window is activated but not lowered or raised.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 
6.3.3
KDE Frameworks Version: 
6.12.0
Qt Version: 
6.8.2

ADDITIONAL INFORMATION
I'm using wayland
Comment 1 Chris Moore 2025-03-19 17:50:03 UTC
I noticed that the kwin config in systemsettings seems to be saving that in the attached kwinrc file as 'activate and lower' for the inactive window.

I changed that entry to 'activate', which fixed the original issue; however, now selecting an inactive window and moving it raises the window.
Comment 2 John Kizer 2025-03-28 19:37:07 UTC
I can reproduce on Fedora KDE 41 - for what it's worth, only the setting mentioned in the title was needed to be able to reproduce the behavior.
Comment 3 mike wyatt 2025-04-30 15:15:42 UTC
Also seeing very strange behaviour with the "Inactive Inner Window Actions". Few seem to correlate to what their label says:

Activate, pass click and raise on release: ✅ Activates, ✅ Passes Click, ✅ Raises (on release)
Activate, raise and pass click: ✅ Activates, ✅ Passes click, ❌ Raises
Activate and pass click: ✅ Activates, ❌ Passes Click, ❌ Raises
Activate: ✅ Activates, ✅ Raises, ❌ Passes Click
Activate and raise: ❌ Activates, ❌ Raises, ✅ Passes Click
Comment 4 John Kizer 2025-04-30 15:31:50 UTC
From testing on git master, it looks like the fix for https://bugs.kde.org/show_bug.cgi?id=501457 will also fix this :-)