UI Test: Dialog Title Move Hand Cursor #118358
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue