Web lists-archives.com

Re: GTK+, WM, desktops and CSD




On Fri, Mar 6, 2015 at 12:59 AM Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx> wrote:
consider a simple dialog. Should it have a close button or not? If the application adds an explicit close button, there are now two areas of the window as displayed by most WMs which will, upon being clicked, cause the window to be hidden.

Yes, in case of server-side decorations. When using client-side decorations, the expectation is that the WM does not add any controls at all and the application can add as many close buttons as it sees fit (read: one). Though to be honest, a simple dialog is not too interesting here - if all you want is a titlebar with a close button, it's perfectly fine to just assume that the WM will give you that. CSD makes more sense(*) for windows with more functions, by for instance allowing you to visually balance the UI by putting an "Open" button on the left and a "Close" button on the right.

(*) Compared to the simple-dialog case, not SSD in general
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-devel-list