6 ex_gui_double_click_8c example
gullradriel edited this page 2026-10-09 00:55:18 +02:00

ex_gui_double_click.c

Double click reporting (headless). The toolkit routes presses to widgets and knows which widget each one landed on, which is everything a double click needs, and it did not report one. Every program wanting the gesture kept its own clock and its own last-widget, and got the radius test right or, more often, left it out and then wondered why a double click fired in the middle of a drag.

n_gui_double_clicked_widget() answers it once for every widget type, and n_gui_was_double_click() is the same question about one widget.