Fix mouse move events being reported as drag events
when using the SGR mouse reporting protocol Fixes #271
This commit is contained in:
parent
1ef010689d
commit
3b861de3d2
@ -49,7 +49,7 @@ encode_mouse_event(Window *w, int button, MouseAction action, int mods) {
|
|||||||
Screen *screen = w->render_data.screen;
|
Screen *screen = w->render_data.screen;
|
||||||
|
|
||||||
if (action == MOVE) {
|
if (action == MOVE) {
|
||||||
if (screen->modes.mouse_tracking_protocol != SGR_PROTOCOL) cb = 3;
|
cb = 3;
|
||||||
} else {
|
} else {
|
||||||
cb = button_map(button);
|
cb = button_map(button);
|
||||||
if (cb == UINT_MAX) return 0;
|
if (cb == UINT_MAX) return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user