2.5
Removed notifier SCREEN_CHANGED from creating menus or tooltips. This one is used to re-initialize spaces, areas, regions in screen.
This commit is contained in:
@@ -354,7 +354,6 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
|
||||
ED_region_init(C, ar);
|
||||
|
||||
/* notify change and redraw */
|
||||
WM_event_add_notifier(C, WM_NOTE_SCREEN_CHANGED, 0, NULL);
|
||||
WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL);
|
||||
|
||||
return ar;
|
||||
@@ -364,7 +363,6 @@ void ui_tooltip_free(bContext *C, ARegion *ar)
|
||||
{
|
||||
ui_remove_temporary_region(C, C->window->screen, ar);
|
||||
|
||||
WM_event_add_notifier(C, WM_NOTE_SCREEN_CHANGED, 0, NULL);
|
||||
WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL);
|
||||
}
|
||||
|
||||
@@ -670,7 +668,6 @@ uiMenuBlockHandle *ui_menu_block_create(bContext *C, ARegion *butregion, uiBut *
|
||||
ED_region_init(C, ar);
|
||||
|
||||
/* notify change and redraw */
|
||||
WM_event_add_notifier(C, WM_NOTE_SCREEN_CHANGED, 0, NULL);
|
||||
WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL);
|
||||
|
||||
return handle;
|
||||
@@ -681,7 +678,6 @@ void ui_menu_block_free(bContext *C, uiMenuBlockHandle *handle)
|
||||
ui_remove_temporary_region(C, C->window->screen, handle->region);
|
||||
MEM_freeN(handle);
|
||||
|
||||
WM_event_add_notifier(C, WM_NOTE_SCREEN_CHANGED, 0, NULL);
|
||||
WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user