Xephyr: restore cursor visibility
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=69388 Commitc100211034(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@acksyn.org> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> as ofba387cf21f"ephyr: Use host (HW) cursors by default." this only applies if -sw-cursor is given on the cmdline. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
		
							parent
							
								
									70efc799cb
								
							
						
					
					
						commit
						93a27b2dd0
					
				| 
						 | 
					@ -28,6 +28,7 @@
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "hostx.h"
 | 
					#include "hostx.h"
 | 
				
			||||||
 | 
					#include "input.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
| 
						 | 
					@ -436,6 +437,7 @@ hostx_init(void)
 | 
				
			||||||
    xcb_change_gc(HostX.conn, HostX.gc, XCB_GC_FOREGROUND, &pixel);
 | 
					    xcb_change_gc(HostX.conn, HostX.gc, XCB_GC_FOREGROUND, &pixel);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!hostx_want_host_cursor ()) {
 | 
					    if (!hostx_want_host_cursor ()) {
 | 
				
			||||||
 | 
					        CursorVisible = TRUE;
 | 
				
			||||||
        /* Ditch the cursor, we provide our 'own' */
 | 
					        /* Ditch the cursor, we provide our 'own' */
 | 
				
			||||||
        cursor_pxm = xcb_generate_id(HostX.conn);
 | 
					        cursor_pxm = xcb_generate_id(HostX.conn);
 | 
				
			||||||
        xcb_create_pixmap(HostX.conn, 1, cursor_pxm, HostX.winroot, 1, 1);
 | 
					        xcb_create_pixmap(HostX.conn, 1, cursor_pxm, HostX.winroot, 1, 1);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue