[PATCH weston] window: allow changing cursor theme and size

Kristian Høgsberg hoegsberg at gmail.com
Tue May 15 08:09:36 PDT 2012


On Tue, May 15, 2012 at 09:21:37AM +0300, Pekka Paalanen wrote:
> On Mon, 14 May 2012 14:39:39 -0400
> Kristian Høgsberg <krh at bitplanet.net> wrote:
> 
> > On Mon, May 14, 2012 at 9:59 AM, Kristian Høgsberg <hoegsberg at gmail.com> wrote:
> > > On Mon, May 14, 2012 at 02:01:50PM +0300, Pekka Paalanen wrote:
> > >> Toytoolkit clients will now use two new environment variables:
> > >>
> > >> TOYTOOLKIT_CURSOR_THEME=theme
> > >> TOYTOOLKTI_CURSOR_SIZE=size
> > >>
> > >> where 'theme' can be e.g. whiteglass if you have the basic X.Org cursor
> > >> themes installed. 'size' is a cursor size hint 4-64, by default 32.
> > >
> > > Should we make it a weston.ini option instead?
> > 
> > On second thought, can you just put this in
> > /usr/share/icons/default/index.theme:
> > 
> > [Icon Theme]
> > Inherits=whiteglass
> > 
> > and have that work?
> 
> Hi Kristian,
> 
> isn't there a danger of that setting getting into X?
> Of course, I'd put that somewhere under $HOME where libXcursor also
> searches in.
> 
> Personally I'd like to change cursors in Weston and Weston only,
> leaving my (host) X server using whatever it happens to be using now.
> Yes, it makes the cursor change appearance between Weston-on-X and
> other X apps, but that is what I'd like.

Yeah, true... I guess the problem that you and other are hitting is
that you're using the 'core' them, that is, the cursors built-in to
the X server.  libXcursor special cases those and there are no cursor
files on disk that we can load for the weston clients.

> I didn't make it a weston.ini option, since toytoolkit clients do not
> use an .ini by default. Or did I miss something?

Right, we only parse that in the desktop-shell client.  I don't know
then, maybe we should go back to shipping a cursor theme with weston
that we can fall back on if loading fails.

Kristian


More information about the wayland-devel mailing list