render: move variables inside #ifdef, as they’re not used outside of it

This commit is contained in:
Daniel Eklöf 2023-06-29 16:07:56 +02:00
parent 7bfa700c55
commit 6388954e8f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -4270,10 +4270,10 @@ render_xcursor_update(struct seat *seat)
xassert(seat->pointer.cursor != NULL);
#if defined(HAVE_CURSOR_SHAPE)
const enum cursor_shape shape = seat->pointer.shape;
const char *const xcursor = seat->pointer.last_custom_xcursor;
#if defined(HAVE_CURSOR_SHAPE)
if (seat->pointer.shape_device != NULL) {
xassert(shape != CURSOR_SHAPE_CUSTOM || xcursor != NULL);