UI Test: Dialog Title Move Hand Cursor #118358

Open
Harley Acheson wants to merge 1 commits from Harley/blender:DialogMoveHand into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 12 additions and 0 deletions

View File

@ -10390,6 +10390,18 @@ static int ui_handle_menu_event(bContext *C,
but = ui_region_find_active_but(region);
#ifdef USE_DRAG_POPUP
/* Change cursor at top of the popup, but not on splash since that closes. */
if (is_floating && event->type == MOUSEMOVE && block->name != "splash") {
wmWindow *win = CTX_wm_window(C);
if (inside_title && win->modalcursor != WM_CURSOR_HAND) {
WM_cursor_modal_set(win, WM_CURSOR_HAND);
}
else if (!inside_title && win->modalcursor == WM_CURSOR_HAND) {
WM_cursor_modal_restore(win);
}
}
if (menu->is_grab) {
if (event->type == LEFTMOUSE) {
menu->is_grab = false;