GNOME Bugzilla – Bug 723669
xsettings: export decoration layout from mutter
Last modified: 2019-03-20 11:15:44 UTC
Depends on bug 723665 for mutter to export the property in the first place. Using a property instead of watching GSettings directly is needed because normal and classic modes use different schemas and keys (and an X window property is the easiest form of IPC)
Created attachment 268163 [details] [review] xsettings: export decoration layout from mutter Read and watch a root window property with the decoration layout. This allows the WM to have multiple sources for configuration, and makes sure that at all times the CSD layout is consistent with server side decorations.
Why can't GTK+ read this from the Atom directly? How will this work for Wayland? I don't really understand how it all fits together...
How will this work for wayland is a good question - I guess like the rest of GtkSettings, for which we don't have an answer yet. (Currently Gtk reads GNOME GSettings directly, but certainly that's not the proper solution) Why can't GTK read this Atom? I believe because it's a lot simpler for them to reuse the existing XSettings machinery. Also, GTK+ does not normally select PropertyChangeMask on the root window (because otherwise it would be woken up by all window switches), so XSettings is the only way to get proper notifications.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/242.