sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit a3fe7f0346236ecd75e79ae612002d497c3bc160
parent be880a7b36d15a002d79aff41f9cdfde27f532ca
Author: blinxen <h-k-81@hotmail.com>
Date:   Mon, 13 Oct 2025 01:34:46 +0200

Move variable creation outside of conditional code block

See https://github.com/swaywm/sway/pull/8405#discussion_r1818100461

Diffstat:
Mswaybar/input.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swaybar/input.c b/swaybar/input.c @@ -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)) {