Fix T59063: operator search menu loses background in some cases.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 2 Jan 2019 17:56:36 +0000 (18:56 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Wed, 2 Jan 2019 17:56:36 +0000 (18:56 +0100)
source/blender/windowmanager/intern/wm_operators.c

index 7c7b953087eae7d9bab44c15a4265d8bc6d06627..60a26cc2f77afaca06c2863fb38018892bd741f5 100644 (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);