mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-10-27 18:51:54 +00:00 
			
		
		
		
	[client] ds: change showPointer to setPointer for more cursors
Currently everything only supports LG_POINTER_NONE and LG_POINTER_SQUARE.
This commit is contained in:
		| @@ -101,8 +101,8 @@ void waylandCursorFree(void) | ||||
|     wl_buffer_destroy(wlWm.cursorBuffer); | ||||
| } | ||||
|  | ||||
| void waylandShowPointer(bool show) | ||||
| void waylandSetPointer(LG_DSPointer pointer) | ||||
| { | ||||
|   wlWm.showPointer = show; | ||||
|   wl_pointer_set_cursor(wlWm.pointer, wlWm.pointerEnterSerial, show ? wlWm.cursor : NULL, 0, 0); | ||||
|   wlWm.showPointer = pointer != LG_POINTER_NONE; | ||||
|   wl_pointer_set_cursor(wlWm.pointer, wlWm.pointerEnterSerial, wlWm.showPointer ? wlWm.cursor : NULL, 0, 0); | ||||
| } | ||||
|   | ||||
| @@ -165,7 +165,7 @@ struct LG_DisplayServerOps LGDS_Wayland = | ||||
|   .glSwapBuffers       = waylandGLSwapBuffers, | ||||
| #endif | ||||
|   .guestPointerUpdated = waylandGuestPointerUpdated, | ||||
|   .showPointer         = waylandShowPointer, | ||||
|   .setPointer          = waylandSetPointer, | ||||
|   .grabPointer         = waylandGrabPointer, | ||||
|   .ungrabPointer       = waylandUngrabPointer, | ||||
|   .capturePointer      = waylandCapturePointer, | ||||
|   | ||||
| @@ -207,7 +207,7 @@ void waylandCBInvalidate(void); | ||||
| // cursor module | ||||
| bool waylandCursorInit(void); | ||||
| void waylandCursorFree(void); | ||||
| void waylandShowPointer(bool show); | ||||
| void waylandSetPointer(LG_DSPointer pointer); | ||||
|  | ||||
| // gl module | ||||
| #if defined(ENABLE_EGL) || defined(ENABLE_OPENGL) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Quantum
					Quantum