Bug 504770

Summary: Displaying the maximize button in apps that don't support it
Product: [Plasma] Breeze Reporter: ogamal523
Component: window decorationAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor CC: kwin-bugs-null, nate, uhhadd, vlad.zahorodnii, xaver.hugl
Priority: NOR Keywords: regression
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Image demonstrating the Bug
How it should look like. Credits: CachyOS Wiki

Description ogamal523 2025-05-25 12:16:52 UTC
Created attachment 181732 [details]
Image demonstrating the Bug

SUMMARY
Since the plasma 6.3 update the maximize button has been showing up in apps that don't support it (ie: BalenaEtcher), this wasn't the behavior in the previous plasma versions.
I have attached an photo demonstrating this

ASSUMPTIONS
I assume the bug originated from the from bumping the version of KDecoration from KDecoration2 to KDecoration3

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Comment 1 ogamal523 2025-05-25 12:19:05 UTC
Created attachment 181733 [details]
How it should look like. Credits: CachyOS Wiki
Comment 2 Nate Graham 2025-05-27 20:31:42 UTC
Any other affected apps? I can't try etcher on my Fedora 42 machine since it requires the utterly ancient libfuse 2 library to be installed on the host system, and Fedora doesn't.
Comment 3 Vlad Zahorodnii 2025-05-28 07:35:28 UTC
I see no maximize button. Please post the output of the xprop command for balenaEtcher.
Comment 4 Nate Graham 2025-05-28 14:09:05 UTC
.
Comment 5 ogamal523 2025-05-28 22:52:09 UTC
(In reply to Nate Graham from comment #2)
> Any other affected apps? I can't try etcher on my Fedora 42 machine since it
I don't know of any other apps that disabled the maximize button besides Etcher sadly, will try to look for some apps that behave similarly.

Sorry for the late response as I am currently during my Exam Season
Comment 6 ogamal523 2025-05-28 22:52:34 UTC
(In reply to Vlad Zahorodnii from comment #3)
> I see no maximize button. Please post the output of the xprop command for
> balenaEtcher.

_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 2, 2, 42, 2
_NET_FRAME_EXTENTS(CARDINAL) = 2, 2, 42, 2
_NET_WM_DESKTOP(CARDINAL) = 4294967295
_KDE_NET_WM_ACTIVITIES(STRING) = "851cc816-8603-4b79-969c-78d90c58a7d9"
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_NET_WM_STATE(ATOM) = _NET_WM_STATE_FOCUSED
_NET_WM_USER_TIME(CARDINAL) = 150766241
_KDE_NET_WM_APPMENU_OBJECT_PATH(STRING) = "/com/canonical/menu/1400004"
_KDE_NET_WM_APPMENU_SERVICE_NAME(STRING) = ":1.1329"
_GTK_THEME_VARIANT(UTF8_STRING) = "dark"
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified location: 420, 216
		program specified minimum size: 1200 by 720
		program specified maximum size: 1200 by 720
		window gravity: Static
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x1, 0x0, 0x0
XdndAware(ATOM) = BITMAP
_NET_WM_BYPASS_COMPOSITOR(CARDINAL) = 2
WM_NAME(UTF8_STRING) = "balenaEtcher"
_NET_WM_NAME(UTF8_STRING) = "balenaEtcher"
WM_WINDOW_ROLE(STRING) = "browser-window"
WM_CLASS(STRING) = "balenaetcher", "balenaEtcher"
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_PID(CARDINAL) = 130526
WM_CLIENT_MACHINE(STRING) = "TheDevil"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, _NET_WM_PING, _NET_WM_SYNC_REQUEST
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 150759395
Comment 7 Vlad Zahorodnii 2025-05-29 07:07:35 UTC
Do you use fractional scaling or something?
Comment 8 ogamal523 2025-05-29 10:19:14 UTC
(In reply to Vlad Zahorodnii from comment #7)
> Do you use fractional scaling or something?

Yes, I have it set to 150% on a 1440p screen.
Comment 9 ogamal523 2025-05-29 10:36:25 UTC
Hey so i have just tried creating a new user and I tested out Etcher in and everything works as expected, so I will chalk this up to it being a configuration issue in my user
Comment 10 ogamal523 2025-05-30 18:04:33 UTC
I think I have found the root cause, setting the minimum width and height to 0 in the kwinrules causes this bug otherwise it's fine, it used to work fine before 6.3, so it's a regression, but not an important one as it's a niche use case only required by Krohnkite (an automatic tiling script), so I will marks this as resolved.