[PATCH] Xephyr: restore cursor visibility

Peter Hutterer peter.hutterer at who-t.net
Tue Oct 1 00:26:10 PDT 2013


On Sun, Sep 15, 2013 at 07:30:38PM +0100, Michele Baldessari wrote:
>   Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=69388
> 
> Commit c100211034ab69ce453a1644fb61c6808d7e3eda (dix: only show the cursor
> if a window defines one (#58398)) broke the default cursor behaviour in
> Xephyr (unless run with -retro). Restore the default cursor visibility
> so that '-retro' or '-host-cursor' are not needed to have a visible
> cursor.
> 
> Signed-off-by: Michele Baldessari <michele at acksyn.org>
> ---
>  hw/kdrive/ephyr/hostx.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c
> index 90db002..d3c6e79 100644
> --- a/hw/kdrive/ephyr/hostx.c
> +++ b/hw/kdrive/ephyr/hostx.c
> @@ -39,6 +39,7 @@
>  #endif
>  
>  #include "hostx.h"
> +#include "input.h"
>  
>  #include <stdlib.h>
>  #include <stdio.h>
> @@ -447,6 +448,7 @@ hostx_init(void)
>      XSetForeground(HostX.dpy, HostX.gc, col.pixel);
>  
>      if (!hostx_want_host_cursor()) {
> +        CursorVisible = TRUE;
>          /* Ditch the cursor, we provide our 'own' */
>          cursor_pxm = XCreatePixmap(HostX.dpy, HostX.winroot, 1, 1, 1);
>          memset(&col, 0, sizeof(col));
> -- 
> 1.8.3.1

makes sense, thanks. merged

Cheers,
   Peter

 


More information about the xorg-devel mailing list