GNOME Bugzilla – Bug 719836
Client side decorations cannot be deactivated with wayland backend
Last modified: 2013-12-04 17:25:55 UTC
I understand it has been chosen to make client side decoration in the wayland backend enabled by default. Some compositors (esoteric ones I concede) might choose not to do so. Attached is a patch to let wayland decorations enabled by default but deactivated if explicitly deactivated by the GTK_CSD environment variable.
Created attachment 263503 [details] [review] enable client side decorations deactivation with wayland backend
Review of attachment 263503 [details] [review]: ::: gtk/gtkwindow.c @@ +5407,3 @@ + csd_env = g_getenv ("GTK_CSD"); + csd_described = csd_env != NULL; + csd_enabled = g_strcmp0 (g_getenv ("GTK_CSD"), "1") == 0; Cosmetics, but I think csd_described is an odd name. I'd just use g_strcmp0 (csd_env, "0") == 0 directly in the wayland clause below
Created attachment 263514 [details] [review] enable client side decorations deactivation with wayland backend
Review of attachment 263514 [details] [review]: looks good now, thanks