Skip to content

Commit

Permalink
X11: only send mouse button up events if not a mousewheel "button"
Browse files Browse the repository at this point in the history
(Brackets in the wrong place, my bad!)
  • Loading branch information
icculus committed Aug 14, 2015
1 parent 874bf86 commit f2f8e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11events.c
Expand Up @@ -1029,8 +1029,8 @@ X11_DispatchEvent(_THIS)
/* see explanation at case ButtonPress */
button -= (8-SDL_BUTTON_X1);
}
SDL_SendMouseButton(data->window, 0, SDL_RELEASED, button);
}
SDL_SendMouseButton(data->window, 0, SDL_RELEASED, button);
}
break;

Expand Down

0 comments on commit f2f8e6f

Please sign in to comment.