Detect URL when clicking to activate URL

Makes the case where the screen contents have changed
between the last mouse move and the click work. See #1203
This commit is contained in:
Kovid Goyal 2018-12-05 14:43:01 +05:30
parent 460c353898
commit c17c801a31
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -364,6 +364,7 @@ HANDLER(add_click) {
static inline void static inline void
open_url(Window *w) { open_url(Window *w) {
Screen *screen = w->render_data.screen; Screen *screen = w->render_data.screen;
detect_url(screen, w->mouse_pos.cell_x, w->mouse_pos.cell_y);
screen_open_url(screen); screen_open_url(screen);
} }