summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@smspillaz-desktop.(none)>2010-04-02 12:13:56 +0800
committerSam Spilsbury <smspillaz@smspillaz-desktop.(none)>2010-04-02 12:13:56 +0800
commit04c5e26e3be81e977c227c0454a576df1812a1d2 (patch)
tree528e8194a7c46795591290d939c6bc9b8a8ece22 /gtk
parent7b78d2885f6cba19c8acf84d468b0686a5a5c990 (diff)
downloadzcomp-04c5e26e3be81e977c227c0454a576df1812a1d2.tar.gz
zcomp-04c5e26e3be81e977c227c0454a576df1812a1d2.tar.bz2
Fix further 2D GTK drawing issues
Diffstat (limited to 'gtk')
-rw-r--r--gtk/window-decorator/gtk-window-decorator.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c
index 7eee355..97ecf0f 100644
--- a/gtk/window-decorator/gtk-window-decorator.c
+++ b/gtk/window-decorator/gtk-window-decorator.c
@@ -3729,21 +3729,14 @@ meta_calc_decoration_size (decor_t *d,
else
{
if ((d->state & META_MAXIMIZED) == META_MAXIMIZED)
- decor_get_default_layout (context, d->client_width -
- _max_win_extents.left -
- _max_win_extents.right,
- d->client_height - 20, &layout);
+ decor_get_default_layout (context, d->client_width,
+ d->client_height - titlebar_height, &layout);
else
- decor_get_default_layout (context, d->client_width -
- _win_extents.left -
- _win_extents.right,
- d->client_height -
- context->top_space +
- _win_extents.bottom, &layout);
+ decor_get_default_layout (context, d->client_width,
+ d->client_height, &layout);
*width = layout.width;
- *height = d->client_height + _win_extents.bottom +
- titlebar_height;
+ *height = layout.height;
d->border_layout = layout;