diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-01-21 08:39:46 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-01-21 08:39:46 +0100 |
| commit | ab8c84447ea552ad114604ee1cf824dec76cf23b (patch) | |
| tree | 4df2e104ff612f5a1e9e65db94fdbfc15b11a759 /src/Fl_Menu.cxx | |
| parent | 2fbf5bed0db2aec0ef6462d58150a40064f0333b (diff) | |
Fix "Wayland: crash with set_menu_window()" - cont'd (#892)
Diffstat (limited to 'src/Fl_Menu.cxx')
| -rw-r--r-- | src/Fl_Menu.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 115e69fe7..312d908e6 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -184,7 +184,7 @@ Fl_Window *Fl_Window_Driver::menu_parent(int *display_height) { } static menuwindow *to_menuwindow(Fl_Window *win) { - if (!Fl_Window_Driver::driver(win)->fltk_menu_window) return false; + if (!Fl_Window_Driver::driver(win)->fltk_menu_window) return NULL; return ((window_with_items*)win)->as_menuwindow(); } |
