Bug 73294

Summary: kwin does not correctly interpret motif decoration hints. [patch]
Product: [Plasma] kwin Reporter: david
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED REMIND    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: patch to fix the problem.

Description david 2004-01-23 01:39:51 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Attached is a patch to make KDE honour the motif MWM_HINTS_DECORATIONS slightly better..

I'd say its a rather high priority patch that won't break anything.
Comment 1 david 2004-01-23 01:40:34 UTC
Created attachment 4306 [details]
patch to fix the problem.

haven't actually tested it - as I don't have kde compiling. should work,
though.
Comment 2 david 2004-01-23 01:54:33 UTC
btw, from the spec:

http://www.ist.co.uk/motif/books/vol6A/ch-20.fm.html

MWM_DECOR_BORDER 
This value enables the window manager borders for the frame. These borders are decorative only; they are not resize handles. Except for non-rectangular windows or programs like a clock, all Motif-style applications should have decorative borders.

So this should not be the full on border that kde gives. Closest is no border.
Comment 3 Lubos Lunak 2004-01-23 16:32:10 UTC
Can you please explain what this patch is supposed to do? Since, as far as I can say, this patch disables border for Motif applications that request a border.
Comment 4 david 2004-01-23 16:49:15 UTC
Ok,

So the MWM_DECOR_BORDER flag requests a border, yes, but not the kind of border you are giving it.

The idea is that it should be a 'thin' or 'unmoveable' border.. without a title bar (unless MWM_DECOR_TITLE is specified).. But since I see no way with KDE to give it a 'thin' border, I was just thinking that 'no' border is best.

David
Comment 5 Lubos Lunak 2004-01-23 18:40:49 UTC
Hmm. I just tested with MWM shipped with OpenMotif, and created a small testapp from the URL you have, and it doesn't do anything with the decorations. Can you provide a screenshot and say what actions are possible with such window? KWin generally doesn't support Motif hints except for few often used, as they're generally deemed to be stupid. If this specific hint makes sense, I might try to map it to some functionality from the NETWM (a.k.a. EWMH) spec.
Comment 6 Lubos Lunak 2004-02-07 20:02:04 UTC
Waiting for a response.