[PATCH weston 5/6] xwayland: set cursor size for libXcursor

Kristian Høgsberg hoegsberg at gmail.com
Wed Jul 11 19:49:07 PDT 2012


On Thu, Jul 12, 2012 at 12:46:14AM +0300, Tiago Vignatti wrote:
> 32 is consistent with toytoolkit.

Why don't we just hardcode this to 32 in xcb-cursor.c for now (like we
already do in window.c), and if we feel like making it configurable,
we can read it from weston.ini later?

Kristian

> Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
> ---
>  src/xwayland/launcher.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/xwayland/launcher.c b/src/xwayland/launcher.c
> index 035c8e3..37b1d54 100644
> --- a/src/xwayland/launcher.c
> +++ b/src/xwayland/launcher.c
> @@ -360,6 +360,9 @@ weston_xserver_init(struct weston_compositor *compositor)
>  	weston_log("xserver listening on display %s\n", display_name);
>  	setenv("DISPLAY", display_name, 1);
>  
> +	/* we should make it configurable though or guess it based on dpi */
> +	setenv("XCURSOR_SIZE", "32", 1);
> +
>  	mxs->loop = wl_display_get_event_loop(display);
>  	mxs->abstract_source =
>  		wl_event_loop_add_fd(mxs->loop, mxs->abstract_fd,
> -- 
> 1.7.9.5
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list