aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-27 15:42:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-07-03 12:36:32 +0000
commit6ed5dce5ab5651c1ee345d0315c1538900282f59 (patch)
tree9e34ac3e1a6f3e697fd68cdc2bee6e3f1ef5b4e1
parentcursor-shape: add support for server side cursor shapes (diff)
render: debug log which method we use to set the xcursor
-rw-r--r--render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/render.c b/render.c
index ab1ddc51..d7cc9dfb 100644
--- a/render.c
+++ b/render.c
@@ -4259,6 +4259,7 @@ render_xcursor_update(struct seat *seat)
if (seat->pointer.shape == CURSOR_SHAPE_HIDDEN) {
/* Hide cursor */
+ LOG_DBG("hiding cursor using client-side NULL-surface");
wl_surface_attach(seat->pointer.surface.surf, NULL, 0, 0);
wl_pointer_set_cursor(
seat->wl_pointer, seat->pointer.serial, seat->pointer.surface.surf,
@@ -4271,6 +4272,7 @@ render_xcursor_update(struct seat *seat)
#if defined(HAVE_CURSOR_SHAPE)
if (seat->pointer.shape_device != NULL) {
+ LOG_DBG("setting cursor shape using cursor-shape-v1");
wp_cursor_shape_device_v1_set_shape(
seat->pointer.shape_device,
seat->pointer.serial,
@@ -4278,6 +4280,7 @@ render_xcursor_update(struct seat *seat)
} else
#endif
{
+ LOG_DBG("setting cursor shape using a client-side cursor surface");
const int scale = seat->pointer.scale;
struct wl_cursor_image *image = seat->pointer.cursor->images[0];