Fix mouse move events being reported as drag events

when using the SGR mouse reporting protocol

Fixes #271
This commit is contained in:
Daniels Kursits
2018-01-07 17:20:09 +02:00
committed by Kovid Goyal
parent 1ef010689d
commit 3b861de3d2

View File

@@ -49,7 +49,7 @@ encode_mouse_event(Window *w, int button, MouseAction action, int mods) {
Screen *screen = w->render_data.screen;
if (action == MOVE) {
if (screen->modes.mouse_tracking_protocol != SGR_PROTOCOL) cb = 3;
cb = 3;
} else {
cb = button_map(button);
if (cb == UINT_MAX) return 0;