Move variable creation outside of conditional code block

See https://github.com/swaywm/sway/pull/8405#discussion_r1818100461
This commit is contained in:
blinxen 2025-10-13 01:34:46 +02:00
parent 6523a2379b
commit 8241bde588

View file

@ -147,8 +147,8 @@ static void wl_pointer_enter(void *data, struct wl_pointer *wl_pointer,
static void wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
uint32_t serial, struct wl_surface *surface) {
#if HAVE_TRAY
struct swaybar_seat *seat = data;
#if HAVE_TRAY
struct swaybar_config *config = seat->bar->config;
if (!config->tray_hidden && dbusmenu_pointer_leave(data, wl_pointer, serial,
surface)) {