This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/102434/ |
And if you remove _KDE_NET_WM_WINDOW_TYPE_OVERRIDE then what? Qt docks being decorated twice just like kruler once and yakuake - but only if there's a rectangular shape? Until then _every_ Qt application will remain completely unchaged in this regard (since the Qt::FramelessWindowHint does set the property) If it's about getting rid of motif hints, that's fine (we'll add a real _net_wm hint then) but if it's only about chromium or stupid CSD is back on the tapet (is it?), that's a social problem but iff we /have/ to fix it technically, there're better ways. Otherwise you can expect a "chromium broken on KDE" bugreport quite soon and chromium devs to be smart enough to (surprise ;-) google or just check how KDE apps do it and then add this property as well to their next release (since they're probably not stupid) Sorry, I don't want to be mean or demotivating, but in the latter case this looks a bit like a quick shot to me - and I do not think it would work at all.
kwin/client.cpp (Diff revision 1) | |||
---|---|---|---|
void Client::checkNoBorder() |
|||
772 | if (!app_noborder) { |
771 | // they should have decorations - except for kept above |
Can you please elaborate on this? What makes keep_above windows special against other shaped ones in this regard? It sounds very much like a special case* and has a solution to me - what would mean that -motif or not- we actually need either a hint for this or "smarter" handling of shaped clients or fix the clients, but i do not see any reason to treat them different just because of the keep_above flag, sorry. Also i object the way it's done. Iff the decoration (of shaped clients) depends on the keep_above state it should change whenever this state changes (what's actually confusing enough) and not indirectly after the next shape change (check keep above, start resize -> deco gone. this looks like a bug to the user) ------------- * /cough/ yakuake /cough/ which is btw. *not* shaped here (square theme images), *does* set _KDE_NET_WM_WINDOW_TYPE_OVERRIDE anyway and actually wants to be an override-redirect window just like the Qt docks probably want to be. (meaning they have to do stacking and focus by themselves)
- Thomas
On August 25th, 2011, 7:05 p.m., Martin Gräßlin wrote:
Review request for kwin and Plasma.
By Martin Gräßlin.
Updated Aug. 25, 2011, 7:05 p.m. Description
Testing
Diffs
|