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
This commit is contained in:
Harley Acheson
2025-01-08 00:32:59 +01:00
committed by Harley Acheson
parent 782e771627
commit 1717eb1919

View File

@@ -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) */