1
1
mirror of https://github.com/swaywm/sway synced 2024-11-19 03:24:39 +01:00

Merge pull request #763 from Hummer12007/patch-2

Fix a warning
This commit is contained in:
Drew DeVault 2016-07-17 21:00:56 -04:00 committed by GitHub
commit 0aac17548e

@ -99,7 +99,7 @@ static void mouse_scroll_notify(struct window *window, enum scroll_direction dir
if (!swaybar.config->wrap_scroll) { if (!swaybar.config->wrap_scroll) {
// Find output this window lives on // Find output this window lives on
int i; int i;
struct output *output; struct output *output = NULL;
for (i = 0; i < swaybar.outputs->length; ++i) { for (i = 0; i < swaybar.outputs->length; ++i) {
output = swaybar.outputs->items[i]; output = swaybar.outputs->items[i];
if (output->window == window) { if (output->window == window) {