mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-09 05:33:58 -04:00
util: add streq() function and use in place of strcmp(...) == 0
This commit is contained in:
parent
44c0cf594b
commit
e0f3703ae6
16 changed files with 172 additions and 165 deletions
4
render.c
4
render.c
|
|
@ -4559,8 +4559,8 @@ render_xcursor_set(struct seat *seat, struct terminal *term,
|
|||
|
||||
if (seat->pointer.shape == shape &&
|
||||
!(shape == CURSOR_SHAPE_CUSTOM &&
|
||||
strcmp(seat->pointer.last_custom_xcursor,
|
||||
term->mouse_user_cursor) != 0))
|
||||
!streq(seat->pointer.last_custom_xcursor,
|
||||
term->mouse_user_cursor)))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue