mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-29 07:58:01 -04:00
term: xcursor_update_for_seat(): BUG on xcursor == NULL
This commit is contained in:
parent
fce13c4106
commit
b3029234af
1 changed files with 4 additions and 1 deletions
|
|
@ -2962,7 +2962,7 @@ term_mouse_motion(struct terminal *term, int button, int row, int col,
|
||||||
void
|
void
|
||||||
term_xcursor_update_for_seat(struct terminal *term, struct seat *seat)
|
term_xcursor_update_for_seat(struct terminal *term, struct seat *seat)
|
||||||
{
|
{
|
||||||
const char *xcursor;
|
const char *xcursor = NULL;
|
||||||
|
|
||||||
switch (term->active_surface) {
|
switch (term->active_surface) {
|
||||||
case TERM_SURF_GRID: {
|
case TERM_SURF_GRID: {
|
||||||
|
|
@ -2996,6 +2996,9 @@ term_xcursor_update_for_seat(struct terminal *term, struct seat *seat)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (xcursor == NULL)
|
||||||
|
BUG("xcursor not set");
|
||||||
|
|
||||||
render_xcursor_set(seat, term, xcursor);
|
render_xcursor_set(seat, term, xcursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue