diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/cairo-util.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/shared/cairo-util.c b/shared/cairo-util.c index a1568ff9..2a332490 100644 --- a/shared/cairo-util.c +++ b/shared/cairo-util.c @@ -488,10 +488,15 @@ theme_get_location(struct theme *t, int x, int y, int width, int height, int flags) { int vlocation, hlocation, location; - const int grip_size = 8; - int margin, top_margin; + int margin, top_margin, grip_size; - margin = (flags & THEME_FRAME_MAXIMIZED) ? 0 : t->margin; + if (flags & THEME_FRAME_MAXIMIZED) { + margin = 0; + grip_size = 0; + } else { + margin = t->margin; + grip_size = 8; + } if (flags & THEME_FRAME_NO_TITLE) top_margin = t->width; |