On Thu, Mar 14, 2013 at 05:23:36PM +0100, Emilio Pozuelo Monfort wrote: > Hi, > > I was looking at why gtk+ clients use a different cursor theme and > size than other (toytoolkit) clients. gtk+ hardcodes the cursor size > to 32 as it has no way to get the preferred (default) size from the > compositor. > > I guess one solution would be to have get_default_cursor_theme and > get_default_cursor_size requests in the desktop-shell interface > that desktop compositors implement. Then clients can get those > values and respect them if they so desire (and they probably do). > > Or we could make this more general as in bug 49021[0] and have a > "settings" interface. > > Thoughts? > > BTW while at this I've made weston respect a new cursor-size > config key (similar to the current undocumented cursor-theme). > > See also this analysis by MoD[1] and his two patches[2][3] (that > apparently went unnoticed) that also try to put some order to > cursor configuration.
I think these patches are fine and I've committed them. As for the XCURSOR patches and the wl_settings idea, I'm less certain. The issue is that most existing DEs have their own settings/conf mechanism and we don't want to try to reinvent that. Many toolkits now pick up these settings directly from the config system. The problem is that a KDE application may not know how to read these values out of GNOMEs configuration system. X has Xsettings which lets the DE mirror some of these config values into an X property database. Toolkits can then standardize on things like icon themes, cursor size and themes. Kristian > Regards, > Emilio > > [0] https://bugs.freedesktop.org/show_bug.cgi?id=49021 > [1] > http://lists.freedesktop.org/archives/wayland-devel/2013-February/007532.html > [2] > http://lists.freedesktop.org/archives/wayland-devel/2013-February/007609.html > [3] > http://lists.freedesktop.org/archives/wayland-devel/2013-February/007610.html > _______________________________________________ > wayland-devel mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/wayland-devel _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
