summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-11-01 11:30:20 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-11-01 11:30:20 +0800
commit83ffe508a589574438d209177030ee1da84884df (patch)
treef5d4aa92f7067cd6b7b3e16ebb0af1e4fec25262
parent1fd00714f72a9c184d89b225cb7abebe74d9e22c (diff)
downloadcompiz-with-glib-mainloop-83ffe508a589574438d209177030ee1da84884df.tar.gz
compiz-with-glib-mainloop-83ffe508a589574438d209177030ee1da84884df.tar.bz2
Fix cairo decoration offsets
-rw-r--r--gtk/window-decorator/cairo.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk/window-decorator/cairo.c b/gtk/window-decorator/cairo.c
index d2fa6d3..a9b8f42 100644
--- a/gtk/window-decorator/cairo.c
+++ b/gtk/window-decorator/cairo.c
@@ -676,9 +676,7 @@ draw_window_decoration (decor_t *d)
gtk_image_set_from_pixmap (GTK_IMAGE (d->decor_image), d->pixmap, NULL);
gtk_window_resize (GTK_WINDOW (d->decor_window), d->width, d->height);
- //gdk_window_move (gdk_frame_window, 0, 0);
- gdk_window_move (gdk_frame_window, -(d->context->left_space - _win_extents.left),
- -(d->context->top_space - d->context->bottom_space) - shadow_offset_y);
+ gdk_window_move (gdk_frame_window, 0, 0);
gdk_window_lower (gdk_frame_window);
}
@@ -766,15 +764,15 @@ 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,
+ decor_get_default_layout (&window_context_no_shadow,
d->client_width, d->client_height, &layout);
*width = layout.width;
*height = layout.height;
d->border_layout = layout;
- d->context = &window_context;
- d->shadow = border_shadow;
+ d->context = &window_context_no_shadow;
+ d->shadow = border_no_shadow;
return TRUE;
}