mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01:00
Fix a warning
This commit is contained in:
parent
2530f952c9
commit
06f46955c0
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ static void mouse_scroll_notify(struct window *window, enum scroll_direction dir
|
|||
if (!swaybar.config->wrap_scroll) {
|
||||
// Find output this window lives on
|
||||
int i;
|
||||
struct output *output;
|
||||
struct output *output = NULL;
|
||||
for (i = 0; i < swaybar.outputs->length; ++i) {
|
||||
output = swaybar.outputs->items[i];
|
||||
if (output->window == window) {
|
||||
|
|
Loading…
Reference in a new issue