Bug 73294 - kwin does not correctly interpret motif decoration hints. [patch]
Summary: kwin does not correctly interpret motif decoration hints. [patch]
Status: RESOLVED REMIND
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-23 01:39 UTC by david
Modified: 2004-02-07 20:02 UTC (History)
0 users

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


Attachments
patch to fix the problem. (885 bytes, patch)
2004-01-23 01:40 UTC, david
Details

Note You need to log in before you can comment on or make changes to this bug.
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.