Bug 479024

Summary: Double-click titlebar actions (such as maximize) not working.
Product: [Plasma] kwin Reporter: Aaron Cottle <aaron>
Component: appmenuAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: egger.m, kde
Priority: NOR Keywords: qt6
Version First Reported In: 5.91.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Aaron Cottle 2023-12-26 12:02:52 UTC
SUMMARY
Specifically double click titlebar actions are broken (on Wayland).

STEPS TO REPRODUCE
1. Ensure double-click title bar actions are on at: System Settings -> Window Management -> Window Behaviour -> Titlebar Actions -> Double-click
1. Double click on a titlebar managed by kwin (so Firefox works because it handles it itself)

OBSERVED RESULT
The window is not maximized.

EXPECTED RESULT
The window is maximized.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.91.0
KDE Frameworks Version: 5.247.0
Qt Version: 6.7.0
Kernel Version: 6.6.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8365U CPU @ 1.60GHz
Memory: 15.4 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: Latitude 7300
Comment 1 David Edmundson 2024-01-02 11:40:00 UTC
I cannot immediately reproduce this.

Can you share your ~/.config/kwinrc file please.
Comment 2 Aaron Cottle 2024-01-03 03:36:20 UTC
(In reply to David Edmundson from comment #1)
> I cannot immediately reproduce this.
> 
> Can you share your ~/.config/kwinrc file please.

Hmm, hope I'm not the only one! Here you go.

[$Version]
update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port-minimizeanimation-effect-to-js,kwin.upd:port-scale-effect-to-js,kwin.upd:port-dimscreen-effect-to-js,kwin.upd:auto-bordersize,kwin.upd:animation-speed,kwin.upd:desktop-grid-click-behavior,kwin.upd:no-swap-encourage,kwin.upd:make-translucency-effect-disabled-by-default,kwin.upd:remove-flip-switch-effect,kwin.upd:remove-cover-switch-effect,kwin.upd:remove-cubeslide-effect,kwin.upd:remove-xrender-backend,kwin.upd:enable-scale-effect-by-default,kwin.upd:overview-group-plugin-id,kwin.upd:animation-speed-cleanup,kwin.upd:replace-cascaded-zerocornered

[Compositing]
AllowTearing=false
GLCore=true
GLTextureFilter=1
HiddenPreviews=4
LatencyPolicy=Medium
OpenGLIsUnsafe=false

[Desktops]
Id_1=ef7b5bf4-a1c7-4404-8b85-258f3bc75502
Number=1
Rows=1

[Effect-MouseMark]
Color=128,64,0

[Effect-mousemark]
Color=128,64,0
MoveResize=100

[NightColor]
Active=true
LatitudeAuto=-33.87
LatitudeFixed=-33.66
LongitudeAuto=151.2
LongitudeFixed=150.23
Mode=Location
NightTemperature=3800

[Plugins]
blurEnabled=true
contrastEnabled=true
desktopgridEnabled=false
kwin4_effect_fadingpopupsEnabled=false
kwin4_effect_loginEnabled=false
kwin4_effect_logoutEnabled=false
kwin4_effect_morphingpopupsEnabled=false
kwin4_effect_scaleEnabled=false
kwin4_effect_squashEnabled=false
kwin4_effect_translucencyEnabled=true
presentwindowsEnabled=false
screenedgeEnabled=false
zoomEnabled=false

[TabBox]
DesktopLayout=org.kde.breeze.desktop
DesktopListLayout=org.kde.breeze.desktop
LayoutName=org.kde.breeze.desktop

[Tiling]
padding=4

[Tiling][0e528d85-204d-5e76-aba4-cb545d6a82fc]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][1e1c319b-67c1-5705-8589-61a3272ccb46]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][20ae6eff-f101-5f68-b99e-7e082e8e4f14]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][2a43b312-3991-5912-82eb-888abfe832a7]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][3668b7da-af67-5e08-b44d-9b145ad15a04]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][55c3c6d7-6f55-5266-943e-cc75d862efbd]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][693f8aff-5042-506c-bdb4-7b89a7172876]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][8a53841a-67e4-5268-8daa-fcc2951a7a5e]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][921daaef-fc40-55a9-b714-0df2058da731]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][93b5aef6-4a30-5ca5-b027-e3f9196b02b8]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][c2cb932c-92d3-57fa-b06b-327bc1ba24ac]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][edb8f570-ca10-542e-a5a3-341cea67fa77]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][ee464c25-f5c4-5917-93a6-c576814a9a47]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Windows]
FocusStealingPreventionLevel=0

[Xwayland]
Scale=1

[org.kde.kdecoration2]
ButtonsOnLeft=F
ButtonsOnRight=IAX
library=org.kde.kwin.aurorae
theme=__aurorae__svg__Sweet-Dark
Comment 3 Bug Janitor Service 2024-01-18 03:45:47 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Michael 2024-01-26 11:02:30 UTC
I have the same issue on Gentoo with Plasma 6 RC1.
No configured "double-click" titlebar action works as expected (not even firefox as previously mentioned). 

Unfortunately there are no visible logs emitted to help troubleshoot this.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo 2.14/5.92.0
(available in About System)
KDE Plasma Version: 5.92.0
KDE Frameworks Version: 5.248.0
Qt Version: 6.6.1
Graphics Platform: Wayland

$ cat ~/.config/kwinrc
[$Version]
update_info=kwin.upd:replace-scalein-with-scale,kwin.upd:port-minimizeanimation-effect-to-js,kwin.upd:port-scale-effect-to-js,kwin.upd:port-dimscreen-effect-to-js,kwin.upd:auto-bordersize,kwin.upd:animation-speed,kwin.upd:desktop-grid-click-behavior,kwin.upd:no-swap-encourage,kwin.upd:make-translucency-effect-disabled-by-default,kwin.upd:remove-flip-switch-effect,kwin.upd:remove-cover-switch-effect,kwin.upd:remove-cubeslide-effect,kwin.upd:remove-xrender-backend,kwin.upd:enable-scale-effect-by-default,kwin.upd:overview-group-plugin-id,kwin.upd:animation-speed-cleanup,kwin.upd:replace-cascaded-zerocornered

[Compositing]
GLPreferBufferSwap=e
LatencyPolicy=Low

[Desktops]
Id_1=35a2689a-dcf7-49c5-82ac-62aa94a92e67
Name_1=Default
Number=1
Rows=1

[Effect-windowview]
BorderActivateAll=9

[NightColor]
Active=true
LatitudeFixed=48.21
LongitudeFixed=16.36
Mode=Location

[Plugins]
kwin4_effect_loginEnabled=false
kwin4_effect_logoutEnabled=false
zoomEnabled=false

[TabBox]
ShowDesktopMode=1

[Tiling]
padding=4

[Tiling][474e6a43-05e5-5076-9880-d3e57b845873]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][8a8a0759-2b07-5dfe-a884-76cfcc58a28e]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][97ce0e77-15fe-59ba-a98c-eb2f81582f2d]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][a0a251b3-1c33-563e-b7be-7f12cd98b42c]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Tiling][e5634271-e5a8-52df-a00c-b445f1cc149b]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Wayland]
EnablePrimarySelection=false

[Xwayland]
Scale=1

[org.kde.kdecoration2]
BorderSize=Tiny
BorderSizeAuto=false
Comment 5 Bug Janitor Service 2024-02-10 03:45:50 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2024-02-25 03:46:22 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!