summaryrefslogtreecommitdiff
path: root/src/ui/listwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-27 14:17:33 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-27 14:17:33 +0200
commit2a4f5d0f67fcd1412968ef967ed3009469a46b90 (patch)
treeae18c6005ed124effeaf7d84e1bff8339f2509e0 /src/ui/listwidget.c
parent71c258194653ab332458fe0620d300f41213603c (diff)
Processing of double clicks
The click handling utility no longer treats double clicks as a special case. An arbitrary number of clicks is kept in a separate counter.
Diffstat (limited to 'src/ui/listwidget.c')
-rw-r--r--src/ui/listwidget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c
index f351c3b3..ac64091f 100644
--- a/src/ui/listwidget.c
+++ b/src/ui/listwidget.c
@@ -280,7 +280,7 @@ static void sizeChanged_ListWidget_(iListWidget *d) {
280static iBool processEvent_ListWidget_(iListWidget *d, const SDL_Event *ev) { 280static iBool processEvent_ListWidget_(iListWidget *d, const SDL_Event *ev) {
281 iWidget *w = as_Widget(d); 281 iWidget *w = as_Widget(d);
282 if (isMetricsChange_UserEvent(ev)) { 282 if (isMetricsChange_UserEvent(ev)) {
283 invalidate_ListWidget(d); 283 invalidate_ListWidget(d);
284 } 284 }
285 else if (isCommand_SDLEvent(ev)) { 285 else if (isCommand_SDLEvent(ev)) {
286 const char *cmd = command_UserEvent(ev); 286 const char *cmd = command_UserEvent(ev);
@@ -317,7 +317,7 @@ static iBool processEvent_ListWidget_(iListWidget *d, const SDL_Event *ev) {
317 redrawHoverItem_ListWidget_(d); 317 redrawHoverItem_ListWidget_(d);
318 break; 318 break;
319 case finished_ClickResult: 319 case finished_ClickResult:
320 case double_ClickResult: 320// case double_ClickResult:
321 redrawHoverItem_ListWidget_(d); 321 redrawHoverItem_ListWidget_(d);
322 if (contains_Rect(innerBounds_Widget(w), pos_Click(&d->click)) && 322 if (contains_Rect(innerBounds_Widget(w), pos_Click(&d->click)) &&
323 d->hoverItem != iInvalidSize) { 323 d->hoverItem != iInvalidSize) {