[metacity/wip/gtk-theme: 30/52] theme: Don't add any bottom border to shaded windows
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/wip/gtk-theme: 30/52] theme: Don't add any bottom border to shaded windows
- Date: Wed, 7 Jan 2015 12:36:57 +0000 (UTC)
commit 24e70aa2680b01d8ed4cc0568171be54a4c92d74
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Sep 17 02:21:53 2011 +0200
theme: Don't add any bottom border to shaded windows
Shaded windows are assumed to be reduced to the titlebar: the
current code enforces a visible bottom border of 0 and only takes
the size of the title bar (+ invisible top border) into account
when resizing the frame. However, we still add an invisible border
at the bottom, which is than subtracted from the title bar, resulting
in shaded windows being cut off.
Fix by forcing both visible and invisible bottom borders to 0.
https://bugzilla.gnome.org/show_bug.cgi?id=659266
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 5f41781..8b79f2c 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -426,10 +426,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)
{
@@ -453,6 +450,9 @@ meta_frame_layout_get_borders (const MetaFrameLayout *layout,
if (type == META_FRAME_TYPE_ATTACHED)
borders->invisible.top = 0;
+ 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]