I still remember some old windows systems which use client side decoration. When applications have some problems, you can not use close button to close them. Any the whole decoration will not be repainted anymore, just leave users the background color. That is a really bad UX.<div>
<br></div><div>I think server side decoration is a better solution. At same time, wayland should allow an application to disable it, and draw its decoration by self.</div><div><br></div><div>Peng</div><div><div><br><div class="gmail_quote">
On Fri, May 6, 2011 at 1:32 PM, Bill Spitzak <span dir="ltr"><<a href="mailto:spitzak@gmail.com">spitzak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Sam Spilsbury wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Actually, I'm pretty sure in 99% of the cases out there the amount of<br>
code required for individual applications to have a window border<br>
using decorations done on the window manager side is going to be<br>
pretty much nil.<br>
</blockquote>
<br></div>
Size? Resize rules? Name? Icon name? Icon? Layer? Window group? Parent Window? Window role? Desktop? Hardly "nil". Take a look at how many pages of stuff is in the <a href="http://freedesktop.org" target="_blank">freedesktop.org</a> window manager hints.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I really don't think this is an issue to do with client side<br>
decorations. If the window management policy can't handle the Gimp<br>
case correctly, then we need to revise our window management policy,<br>
where of course I'm open to ideas here.<br>
</blockquote>
<br></div>
"Window management policy" should also be client-side. I may not have been clear about that. The wayland compositer almost NEVER moves or raises or resizes a window. Clients do this in response to clicks or whatever. This would have made it TRIVIAL to implement Gimp the way they intended, as at no time would an image window raise above their toolbars, since they control both of them.<br>
<br>
I think it is disgusting that for 30 years now we have been forced to not use overlapping windows, primarily due to the idiotic idea that the system should implement "click to top" (especially idiotic because of the incredible triviality of making the client do that). Every major application (including Gimp...) has been forced to use a single window with a "tiled" interior, and perhaps some pop-up "child" windows, because of this bug and am really really hoping Wayland will finally fix it.<br>
<br>
To handle locked windows the compositor certainly can move, raise, lower and unmap them. It can do this if the user holds down certain keys, or if it detects the application is locked up, or if the user picks menu items.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On windows all we see is that applications can draw widgets inside the<br>
existing window border style. This works well in every case I've seen<br>
it - chromium, firefox, office, you name it.<br>
</blockquote>
<br></div>
No on Windows an application can add drawings to the title bar. It is pretty clear that applications are assuming the default Vista colors and button sizes and layouts when making these drawings, thus defeating theming.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We still have the problem of not having a universal toolkit to handle<br>
these things, and the reality of the matter is that a lot of<br>
proprietary applications are not going to want to use these toolkits.<br>
</blockquote>
<br></div>
I have no idea why you think that making the window borders match is all that is needed. What about the buttons and menus and toolbars and scroll bars and how editing is done? If this is important I would much rather see a solution that addresses all of these, rather than somehow saying the window borders are "special".<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You cannot assume that there will be a universally adopted method to<br>
styling because we see on every single platform that there will *not*<br>
be one. The best way to enforce styling is to enforce it at the window<br>
manager level, so that the applications on the system actually obey<br>
what the user wants them to do, not some crazy idea that the<br>
application developer had.<br>
</blockquote>
<br></div>
And this is true on X and Windows today. People bypass the system and draw their own window borders. And the result is far worse than if the system was designed for this from the start. Lets not repeat these mistakes.<div>
<div></div><div class="h5"><br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org" target="_blank">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br></div></div>