Fix T66538: Menus in popups opening on mouse over
Caused by b708917d94
Solve by restricting this change to popovers
instead of other kinds of menus (enums mainly).
This commit is contained in:
@@ -7301,7 +7301,11 @@ static void button_activate_state(bContext *C, uiBut *but, uiHandleButtonState s
|
||||
button_tooltip_timer_reset(C, but);
|
||||
|
||||
/* automatic open pulldown block timer */
|
||||
if (ELEM(but->type, UI_BTYPE_BLOCK, UI_BTYPE_PULLDOWN, UI_BTYPE_POPOVER, UI_BTYPE_MENU)) {
|
||||
if (ELEM(but->type, UI_BTYPE_BLOCK, UI_BTYPE_PULLDOWN, UI_BTYPE_POPOVER) ||
|
||||
/* Menu button types may draw as popovers, check for this case
|
||||
* ignoring other kinds of menus (mainly enums). (see T66538). */
|
||||
((but->type == UI_BTYPE_MENU) &&
|
||||
(UI_but_paneltype_get(but) || ui_but_menu_draw_as_popover(but)))) {
|
||||
if (data->used_mouse && !data->autoopentimer) {
|
||||
int time;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user