4 ms·
> What you would loose is the ability to configure the appearance of the decorations because the WM might do it differently. WM is the place where I want to co
by seba_dos1 9y ago
> What you would loose is the ability to configure the appearance of the decorations because the WM might do it differently.
WM is the place where I want to configure the appearance and behavior of window decorations. So that's expected and positive. Point to me.
> With CSD this is done by Gtk+ regardless of the WM.
No, it's done by every toolkit separately regardless of the WM. You have one WM, and you have many toolkits. This is how the user looses the ability to configure the appearance of window decorations. Point to me.
> A toolkit is still needed for buttons, text, etc.
Some compositors don't need it. But yeah, most do. Point to me anyway.
> Both come with Gtk+.
Yeah, Gtk+2, which doesn't do CSD at all. And in both Openmoko 2008 and Maemo 6, GTK+ apps were already looking out of place, superseded by Qt and/or EFL. I'm not even sure if it was installed by default anymore.
With CSD-only, stuff like Illume in Openmoko wouldn't be possible at all. It was already horrible to make it work well on X, don't make it even harder on Wayland!
> Have a look at Windows and you'll see that most apps will do it if they are able to. All web browsers, the file manager, Office, ...
Taking a look at Windows apps is the best point against CSD :) GNOME is following the example and starts to look awful and inconsistent as well, and let's not even speak about UX. Thankfully, I don't have to use it.
> Chrome and Firefox
Both configurable. For a reason. Even though they are actually in the minority of apps where CSD totally makes sense. Go figure.
Anyway, this discussion went far off topic now. If you want to, use CSD in your app or your toolkit. I don't care. It will look ugly, have bad UX and it will add to the configuration mess, but I don't have to use it, so it will be problem of your users, not me. CSD works under X already, with a few caveats, but under Wayland it's already fixed, there's no issue with it at all.
However, when you make a compositor for the desktop and you make it require CSD from every app out there, that's just evil, mean and creates problems. Don't do it.
- jhasse 9y ago> WM is the place where I want to configure the appearance and behavior of window decorations. So that's expected and positive. Point to me. The appearance won't match with GtkHeaderBar apps then. > No, it's done by every toolkit separately regardless of the WM. You have one WM, and you have many toolkits. You have one WM running at a time, but multiple to choose from. And as I said: The idea is to have only one toolkit: Gtk+. > But yeah, most do. Point to me anyway. ... > Taking a look at Windows apps is the best point against CSD :) That's your opinion, not a fact.
- seba_dos1 9y ago> The appearance won't match with GtkHeaderBar apps then. If your app have special needs and has to use CSD, it's up to you to provide (or not) matching appearance for your users, by toolkit or any other means to achieve that. With CSD-only, you're guaranteed to get non-matching appearance. It's way easier to provide all-matching appearance with SSD, since it's only minority of toolkits that decided to go full CSD, so you just have to match your Gtk+ style. > ... Let me remind you - the idea that compositor theoretically does not need a toolkit was yours, as an argument for CSD-only compositor. I have showed you that while theoretically it might have some merit, especially on mobile, in practice it doesn't work that way with desktop environments on Wayland - so it can't really be taken as a case in this point. > The idea is to have only one toolkit: Gtk+. Wow. Just, no. The only Gtk+3 app I usually run on my desktop is Firefox, and it's not even exactly a Gtk+ app. Let's keep such crazy ideas as science fiction, please. That might explain some attitudes on this topic (and some others - interoperability was always a somewhat poor side of the GNOME camp) though. Not a happy thought to be honest.
- jhasse 9y ago> If your app have special needs and has to use CSD, [...] Who defines what's special and what's normal though? > I have showed you that while theoretically it might have some merit, especially on mobile, in practice it doesn't work that way with desktop environments on Wayland - so it can't really be taken as a case in this point. Because of Xwayland and interactions with the user?
- seba_dos1 9y ago> Who defines what's special and what's normal though? Typical app does not need to touch its window decoration, only some need. The distinction is natural. Even Gtk+ knows that distinction and lets you disable CSD for apps that don't customize the header bar. > Because of Xwayland and interactions with the user? Because it's tightly related to the whole DE, even more than under X, and that DE already has a toolkit for the compositor to use, be it Gtk+, Qt, Evas, St or whatever else. Plus, interactions. Plus, XWayland.