diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-01-21 08:30:49 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-01-21 08:30:49 +0100 |
| commit | 2fbf5bed0db2aec0ef6462d58150a40064f0333b (patch) | |
| tree | 91b35518e8ee3abecf2c11125d3ea28124e576ed /src/Fl_Tooltip.cxx | |
| parent | b5b839e4f00f5cb0dde2de165ebb7c4bcbf65c3c (diff) | |
Fix "Wayland: crash with set_menu_window()" (#892)
Fixes also a similar crash occuring after use of set_tooltip_window().
Two bool member variables are added to class Fl_Window_Driver
to indicate true FLTK menu windows (i.e., created by Fl_Menu_Item::pulldown())
and true FLTK tooltip windows (i.e., Fl_Tooltip).
Diffstat (limited to 'src/Fl_Tooltip.cxx')
| -rw-r--r-- | src/Fl_Tooltip.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx index f77b668e9..1be2078bf 100644 --- a/src/Fl_Tooltip.cxx +++ b/src/Fl_Tooltip.cxx @@ -20,6 +20,7 @@ #include <FL/Fl.H> #include <FL/fl_string_functions.h> #include "Fl_System_Driver.H" +#include "Fl_Window_Driver.H" #include <stdio.h> @@ -50,6 +51,7 @@ public: Fl_TooltipBox() : Fl_Menu_Window(0, 0) { set_override(); set_tooltip_window(); + Fl_Window_Driver::driver(this)->fltk_tooltip_window = true; end(); } void draw() FL_OVERRIDE; |
