Fix T59063: operator search menu loses background in some cases.

This commit is contained in:
Brecht Van Lommel 2019-01-02 18:56:36 +01:00
parent f8ce4ebf07
commit 26e0dc5d15
Notes: blender-bot 2023-02-14 09:29:42 +01:00
Referenced by issue #59063, Small UI bug
1 changed files with 3 additions and 6 deletions

View File

@ -1651,12 +1651,9 @@ static int wm_search_menu_invoke(bContext *C, wmOperator *UNUSED(op), const wmEv
}
struct SearchPopupInit_Data data = {
.size = {
UI_searchbox_size_x() * 2,
UI_searchbox_size_y(),
},
};
static struct SearchPopupInit_Data data;
data.size[0] = UI_searchbox_size_x() * 2;
data.size[1] = UI_searchbox_size_y();
UI_popup_block_invoke(C, wm_block_search_menu, &data);