Skip to content

Commit 089d5ba

Browse files
committed
Clear cursor when screen blanking
A left-over cursor buffer will cause a crash when detaching from a wayland session.
1 parent 630ed4a commit 089d5ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,9 @@ static int blank_screen(struct wayvnc* self)
891891
nvnc_display_feed_buffer(self->nvnc_display, placeholder_fb, &damage);
892892
pixman_region_fini(&damage);
893893
nvnc_fb_unref(placeholder_fb);
894+
895+
nvnc_set_cursor(self->nvnc, NULL, 0, 0, 0, 0, false);
896+
894897
return 0;
895898
}
896899

0 commit comments

Comments
 (0)