From 1717eb1919c35f70928fa235d69f7340180d0f17 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Wed, 8 Jan 2025 00:32:59 +0100 Subject: [PATCH] Fix 132769: Reset Mouse Cursor In Popups Changes in 02b1e5a48f don't work correctly in popovers. Which means you can hover over a numerical input, then off again, and it will show an incorrect mouse cursor. This PR just uses ED_region_cursor_set which works there and elsewhere. Pull Request: https://projects.blender.org/blender/blender/pulls/132775 --- source/blender/editors/interface/interface_handlers.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/editors/interface/interface_handlers.cc b/source/blender/editors/interface/interface_handlers.cc index 91257fc138e..f30eb4ab563 100644 --- a/source/blender/editors/interface/interface_handlers.cc +++ b/source/blender/editors/interface/interface_handlers.cc @@ -5485,7 +5485,7 @@ static void ui_numedit_set_active(uiBut *but) if ((but->flag & UI_SELECT) == 0) { if ((but->drawflag & UI_BUT_HOVER_LEFT) || (but->drawflag & UI_BUT_HOVER_RIGHT)) { if (data->changed_cursor) { - data->window->tag_cursor_refresh = true; + ED_region_cursor_set(data->window, data->area, data->region); data->changed_cursor = false; } } @@ -8925,7 +8925,7 @@ static void button_activate_exit( #endif if (data->changed_cursor) { - win->tag_cursor_refresh = true; + ED_region_cursor_set(data->window, data->area, data->region); } /* redraw and refresh (for popups) */