Fix T80590: Popups clipped by status-bar and top-bar

The drawing of popus should be done with the window's default viewport
and scissor. Previous functions may change these, so they should be
explicitly reset.
This commit is contained in:
Julian Eisel 2020-09-09 17:52:36 +02:00
parent 370d6e5025
commit 0cff2c944f
Notes: blender-bot 2023-02-14 08:40:26 +01:00
Referenced by issue #80590, Sometimes status bar context menu is only partially visible
1 changed files with 1 additions and 0 deletions

View File

@ -795,6 +795,7 @@ static void wm_draw_window_onscreen(bContext *C, wmWindow *win, int view)
/* After area regions so we can do area 'overlay' drawing. */
ED_screen_draw_edges(win);
wm_draw_callbacks(win);
wmWindowViewport(win);
/* Blend in floating regions (menus). */
LISTBASE_FOREACH (ARegion *, region, &screen->regionbase) {