summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-03-23 00:14:05 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-03-23 00:14:05 +0800
commit323c800570821b6d2331d83a31931b386dbf7f9d (patch)
treeba93b6f786bae966b75cac0746fdcf8ffb20e2d2 /gtk
parentb53f94cf825420faacc716257743f4cc92d72717 (diff)
downloadzcomp-323c800570821b6d2331d83a31931b386dbf7f9d.tar.gz
zcomp-323c800570821b6d2331d83a31931b386dbf7f9d.tar.bz2
Fixed missing left/right bits on 3d mode metacity
Diffstat (limited to 'gtk')
-rw-r--r--gtk/window-decorator/gtk-window-decorator.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/window-decorator/gtk-window-decorator.c b/gtk/window-decorator/gtk-window-decorator.c
index b67b20a..f80850f 100644
--- a/gtk/window-decorator/gtk-window-decorator.c
+++ b/gtk/window-decorator/gtk-window-decorator.c
@@ -2167,11 +2167,11 @@ meta_draw_window_decoration (decor_t *d)
cmap = get_colormap_for_drawable (GDK_DRAWABLE (d->pixmap));
depth = gdk_drawable_get_depth (GDK_DRAWABLE (d->frame_window));
- pixmap = create_pixmap (rect.width, size, depth);
+ pixmap = create_pixmap (size, rect.height, depth);
gdk_drawable_set_colormap (GDK_DRAWABLE (pixmap), cmap);
}
else
- pixmap = create_pixmap (rect.width, size, 32);
+ pixmap = create_pixmap (size, rect.height, 32);
cr = gdk_cairo_create (GDK_DRAWABLE (pixmap));
gdk_cairo_set_source_color_alpha (cr, &bg_color, bg_alpha);
@@ -2666,7 +2666,6 @@ static GdkPixmap *
pixmap_new_from_pixbuf (GdkPixbuf *pixbuf, int depth)
{
GdkPixmap *pixmap;
- GdkColormap *colormap;
guint width, height;
cairo_t *cr;