summaryrefslogtreecommitdiff
path: root/gtk/window-decorator
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-11-01 11:19:10 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-11-01 11:19:10 +0800
commit1fd00714f72a9c184d89b225cb7abebe74d9e22c (patch)
tree4af92b42c1dad4efb394a272cacd60c91dba6ead /gtk/window-decorator
parentbd5b81f749a59939fdcf7659e5650abcbb1eef8b (diff)
downloadcompiz-with-glib-mainloop-1fd00714f72a9c184d89b225cb7abebe74d9e22c.tar.gz
compiz-with-glib-mainloop-1fd00714f72a9c184d89b225cb7abebe74d9e22c.tar.bz2
Fix decoration offsets in metacity 2D mode (hopefully for real this time)
Diffstat (limited to 'gtk/window-decorator')
-rw-r--r--gtk/window-decorator/metacity.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/window-decorator/metacity.c b/gtk/window-decorator/metacity.c
index 2249f08..bbef354 100644
--- a/gtk/window-decorator/metacity.c
+++ b/gtk/window-decorator/metacity.c
@@ -868,8 +868,9 @@ meta_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, -(fgeom.left_width),
- -(fgeom.bottom_height));
+ gdk_window_move (gdk_frame_window,
+ d->context->left_corner_space - 1,
+ d->context->top_corner_space - 1);
gdk_window_lower (gdk_frame_window);
}