UI: disable screen edges for full-screen areas
authorCampbell Barton <ideasman42@gmail.com>
Thu, 22 Nov 2018 01:32:54 +0000 (12:32 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 22 Nov 2018 01:34:15 +0000 (12:34 +1100)
source/blender/editors/screen/screen_draw.c

index 5371fcfd6d44df1d8c249eea01c63210234f35c6..af6f9acfa47af1285de87a5859bfbbed7f6073df 100644 (file)
@@ -370,6 +370,12 @@ static void drawscredge_area(ScrArea *sa, int sizex, int sizey, float edge_thick
 void ED_screen_draw_edges(wmWindow *win)
 {
        bScreen *screen = WM_window_get_active_screen(win);
+       screen->do_draw = false;
+
+       if (screen->state == SCREENFULL) {
+               return;
+       }
+
        const int winsize_x = WM_window_pixels_x(win);
        const int winsize_y = WM_window_pixels_y(win);
        float col[4], corner_scale, edge_thickness;
@@ -421,8 +427,6 @@ void ED_screen_draw_edges(wmWindow *win)
        }
 
        glDisable(GL_SCISSOR_TEST);
-
-       screen->do_draw = false;
 }
 
 /**