mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
input: fix 'unused variable' warning (release builds)
This commit is contained in:
parent
73133c10ee
commit
33744ebe63
1 changed files with 2 additions and 1 deletions
3
input.c
3
input.c
|
|
@ -743,7 +743,8 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
|
||||||
} else {
|
} else {
|
||||||
if (surface != NULL) {
|
if (surface != NULL) {
|
||||||
/* Sway 1.4 sends this event with a NULL surface when we destroy the window */
|
/* Sway 1.4 sends this event with a NULL surface when we destroy the window */
|
||||||
const struct wl_window *win = wl_surface_get_user_data(surface);
|
const struct wl_window *win __attribute__((unused))
|
||||||
|
= wl_surface_get_user_data(surface);
|
||||||
assert(old_moused == win->term);
|
assert(old_moused == win->term);
|
||||||
}
|
}
|
||||||
old_moused->active_surface = TERM_SURF_NONE;
|
old_moused->active_surface = TERM_SURF_NONE;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue