From 7b01f0b39fc08c26af00eceddcd0ee6998d50504 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 22 Jan 2024 20:58:48 +0100 Subject: [PATCH] Fixes mouse pointer visibility for popups (#890) --- src/Fl_Menu.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx index 4aae40ecf..4e17ec534 100644 --- a/src/Fl_Menu.cxx +++ b/src/Fl_Menu.cxx @@ -969,10 +969,14 @@ const Fl_Menu_Item* Fl_Menu_Item::pulldown( Y += Fl::event_y_root()-Fl::event_y(); menuwindow::parent_ = Fl::first_window(); } + int XX, YY, WW; Fl::screen_xywh(XX, YY, WW, menuwindow::display_height_, menuwindow::parent_->screen_num()); menuwindow mw(this, X, Y, W, H, initial_item, title, menubar); Fl::grab(mw); + // If we grab the mouse pointer, we should also make sure that it is visible. + if (menuwindow::parent_) + menuwindow::parent_->cursor(FL_CURSOR_DEFAULT); menustate pp; p = &pp; pp.p[0] = &mw; pp.nummenus = 1;