diff options
Diffstat (limited to 'src/ui/listwidget.c')
-rw-r--r-- | src/ui/listwidget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c index 29aa9d1f..46d32e9a 100644 --- a/src/ui/listwidget.c +++ b/src/ui/listwidget.c | |||
@@ -283,7 +283,7 @@ static void setHoverItem_ListWidget_(iListWidget *d, size_t index) { | |||
283 | } | 283 | } |
284 | 284 | ||
285 | void updateMouseHover_ListWidget(iListWidget *d) { | 285 | void updateMouseHover_ListWidget(iListWidget *d) { |
286 | const iInt2 mouse = mouseCoord_Window(get_Window()); | 286 | const iInt2 mouse = mouseCoord_Window(get_Window(), 0); |
287 | setHoverItem_ListWidget_(d, itemIndex_ListWidget(d, mouse)); | 287 | setHoverItem_ListWidget_(d, itemIndex_ListWidget(d, mouse)); |
288 | } | 288 | } |
289 | 289 | ||
@@ -355,7 +355,7 @@ static iBool processEvent_ListWidget_(iListWidget *d, const SDL_Event *ev) { | |||
355 | switch (processEvent_Click(&d->click, ev)) { | 355 | switch (processEvent_Click(&d->click, ev)) { |
356 | case started_ClickResult: | 356 | case started_ClickResult: |
357 | d->noHoverWhileScrolling = iFalse; | 357 | d->noHoverWhileScrolling = iFalse; |
358 | updateHover_ListWidget_(d, mouseCoord_Window(get_Window())); | 358 | updateHover_ListWidget_(d, mouseCoord_Window(get_Window(), ev->button.which)); |
359 | redrawHoverItem_ListWidget_(d); | 359 | redrawHoverItem_ListWidget_(d); |
360 | return iTrue; | 360 | return iTrue; |
361 | case aborted_ClickResult: | 361 | case aborted_ClickResult: |