Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2018-04-24 20:59:48 +0300
committerJulian Eisel <eiseljulian@gmail.com>2018-04-24 21:16:44 +0300
commit2cd9a0ce5c3785be3734d97446ff8470b22d6da7 (patch)
tree24339a18224f636c14ba4ba6bb8ae0aa7e913758 /source/blender/windowmanager
parent34d6b48c47aae25e26e7864ff66314b37669ebcc (diff)
Hide top-bar in fullscreen
Fullscreen as in the Alt+F10 fullscreen.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 62f377e5f2e..85c2b5cdf7b 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -2107,7 +2107,9 @@ int WM_window_screen_pixels_y(const wmWindow *win)
short screen_size_y = WM_window_pixels_y(win);
for (ScrArea *sa = win->global_areas.areabase.first; sa; sa = sa->next) {
- screen_size_y -= ED_area_global_size_y(sa);
+ if ((sa->global->flag & GLOBAL_AREA_IS_HIDDEN) == 0) {
+ screen_size_y -= ED_area_global_size_y(sa);
+ }
}
return screen_size_y;