Bug 378309

Summary: kwin_x11 does not respect window title hints - always shows sysMenu and minimize button
Product: [Plasma] kwin Reporter: Martin Koller <martin>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.9.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Testprogram

Description Martin Koller 2017-03-31 09:22:30 UTC
Created attachment 104825 [details]
Testprogram

Attached small Qt application shows that kwin_x11 always shows a system menu and a minimize button although I only set the flags to show only the title:
Qt::CustomizeWindowHint | Qt::WindowTitleHint;

xfwm4 and icewm also show the system menu (which I think is also wrong) but at least both of them do not show the minimize button but kwin_x11 does.

Note that kwin is used here in an industrial application where more stringent rules shall apply what the end user shall be able to do with the windows.
Comment 1 Martin Flöser 2017-03-31 12:50:28 UTC
KWin does not have support for these aspects of the non standard and not documented hints of the Motif Window Manager. This is a custom protocol between Motif applications and the Motif Window Manager.

KWin never had support for this and will never have support for this. The hints are not suitable for KWin as KWin does not have any control over the window decoration. The decoration is provided by a plugin, thus outside the scope of KWin.