aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-30 21:25:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-30 21:25:32 +0000
commitb3029234af2a0f4ff92947ec6d83581c26e6d3e9 (patch)
treee712b81955bf89be38a55ee8b903b0eac8b7df85
parentinput: make csd_data variable ‘const’ (diff)
term: xcursor_update_for_seat(): BUG on xcursor == NULL
-rw-r--r--terminal.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index d65c0bd0..25310d36 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2962,7 +2962,7 @@ term_mouse_motion(struct terminal *term, int button, int row, int col,
void
term_xcursor_update_for_seat(struct terminal *term, struct seat *seat)
{
- const char *xcursor;
+ const char *xcursor = NULL;
switch (term->active_surface) {
case TERM_SURF_GRID: {
@@ -2996,6 +2996,9 @@ term_xcursor_update_for_seat(struct terminal *term, struct seat *seat)
return;
}
+ if (xcursor == NULL)
+ BUG("xcursor not set");
+
render_xcursor_set(seat, term, xcursor);
}