When double or triple clicking ignore clicks if they are "far" from each other

Fixes #1093
This commit is contained in:
Kovid Goyal
2018-11-23 11:46:02 +05:30
parent b44345d78e
commit a0ff625f61
3 changed files with 45 additions and 17 deletions

View File

@@ -52,6 +52,7 @@ typedef struct {
typedef struct {
double at;
int button, modifiers;
double x, y;
} Click;
#define CLICK_QUEUE_SZ 3
@@ -67,7 +68,10 @@ typedef struct {
CursorShape last_cursor_shape;
PyObject *title;
ScreenRenderData render_data;
unsigned int mouse_cell_x, mouse_cell_y;
struct {
unsigned int cell_x, cell_y;
double x, y;
} mouse_pos;
WindowGeometry geometry;
ClickQueue click_queue;
double last_drag_scroll_at;