summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@smspillaz-desktop.(none)>2010-04-02 18:48:57 +0800
committerSam Spilsbury <smspillaz@smspillaz-desktop.(none)>2010-04-02 18:48:57 +0800
commit96b29f03aa817d78412413e97227fa3873644840 (patch)
tree60e81bc454f6786672b125e436f4387f6bcbcaca /gtk
parentca6d4c997a66e97ccf16dd13d1d236507ae8eb9c (diff)
downloadzcomp-96b29f03aa817d78412413e97227fa3873644840.tar.gz
zcomp-96b29f03aa817d78412413e97227fa3873644840.tar.bz2
Fix drawing issues on bottom in cairo mode
Diffstat (limited to 'gtk')
-rw-r--r--gtk/window-decorator/gtk-window-decorator.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c
index 817da31..4a45f7c 100644
--- a/gtk/window-decorator/gtk-window-decorator.c
+++ b/gtk/window-decorator/gtk-window-decorator.c
@@ -1980,11 +1980,11 @@ meta_draw_window_decoration (decor_t *d)
y1 = d->context->top_space - _win_extents.top - titlebar_height;
x2 = d->width - d->context->right_space + _win_extents.right;
y2 = d->height - d->context->bottom_space + _win_extents.bottom;
-
-
+
if (!d->pixmap || !d->picture)
return;
+
if (d->frame_window)
{
GdkColormap *cmap = get_colormap_for_drawable (GDK_DRAWABLE (d->pixmap));
@@ -3677,10 +3677,10 @@ calc_decoration_size (decor_t *d,
if (w < top_width)
top_width = MAX (ICON_SPACE + d->button_width, w);
- decor_get_default_layout (&window_context, top_width, 1, &layout);
+ decor_get_default_layout (&window_context, d->client_width, d->client_height, &layout);
- *width = d->client_width + (_win_extents.left + _win_extents.right) * 1.5;
- *height = d->client_height + _win_extents.bottom + layout.height;
+ *width = layout.width;
+ *height = layout.height;
d->border_layout = layout;
d->context = &window_context;
@@ -5671,7 +5671,7 @@ active_window_changed (WnckScreen *screen)
{
WnckWindow *win;
decor_t *d;
-
+
win = wnck_screen_get_previously_active_window (screen);
if (win)
{