summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}