From fc46e771cdd5b90d33fc7f895886fc43dea351c7 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:20:25 +0100 Subject: Improve prioritization of event handlers added at open display time --- FL/Fl.H | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'FL/Fl.H') diff --git a/FL/Fl.H b/FL/Fl.H index 95d08c9db..f229e5344 100644 --- a/FL/Fl.H +++ b/FL/Fl.H @@ -851,7 +851,9 @@ public: /** Gets the current Fl::focus() widget. \sa Fl::focus(Fl_Widget*) */ static Fl_Widget* focus() {return focus_;} static void focus(Fl_Widget*); - static void add_handler(Fl_Event_Handler h); + static void add_handler(Fl_Event_Handler ha); + static void add_handler(Fl_Event_Handler ha, Fl_Event_Handler before); + static Fl_Event_Handler last_handler(); static void remove_handler(Fl_Event_Handler h); static void add_system_handler(Fl_System_Handler h, void *data); static void remove_system_handler(Fl_System_Handler h); -- cgit v1.2.3