diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/theme.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index be6b7a5d..9a7bf455 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -423,10 +423,7 @@ meta_frame_layout_get_borders (const MetaFrameLayout *layout, borders->visible.top = MAX (buttons_height, title_height); borders->visible.left = layout->left_width; borders->visible.right = layout->right_width; - if (flags & META_FRAME_SHADED) - borders->visible.bottom = 0; - else - borders->visible.bottom = layout->bottom_height; + borders->visible.bottom = layout->bottom_height; if (flags & META_FRAME_FULLSCREEN) { @@ -439,6 +436,9 @@ meta_frame_layout_get_borders (const MetaFrameLayout *layout, borders->invisible.bottom = layout->invisible_border.bottom; borders->invisible.top = layout->invisible_border.top; + if (flags & META_FRAME_SHADED) + borders->visible.bottom = borders->invisible.bottom = 0; + borders->total.left = borders->invisible.left + borders->visible.left; borders->total.right = borders->invisible.right + borders->visible.right; borders->total.bottom = borders->invisible.bottom + borders->visible.bottom; |