summaryrefslogtreecommitdiff
path: root/gtk/window-decorator
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-10-03 14:36:45 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-10-24 22:42:07 +0800
commitb2e9f4aaa80f30655daffcb7c835768fb991247e (patch)
tree70ef1c8c34e8df2071a5f0ff397d4e515a48b9aa /gtk/window-decorator
parent7ba6a2386fd61025e0a11919e42c6b1363288fc9 (diff)
downloadcompiz-with-glib-mainloop-b2e9f4aaa80f30655daffcb7c835768fb991247e.tar.gz
compiz-with-glib-mainloop-b2e9f4aaa80f30655daffcb7c835768fb991247e.tar.bz2
Don't attempt to re-use buffer pixmaps.
It's not safe to re-use these pixmaps, because there isn't any guaruntee that they haven't been nuked by compiz
Diffstat (limited to 'gtk/window-decorator')
-rw-r--r--gtk/window-decorator/switcher.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gtk/window-decorator/switcher.c b/gtk/window-decorator/switcher.c
index 0b840bd..046ea0a 100644
--- a/gtk/window-decorator/switcher.c
+++ b/gtk/window-decorator/switcher.c
@@ -370,23 +370,6 @@ update_switcher_window (WnckWindow *win,
switcher_selected_window = selected;
}
- if (width == d->width && height == d->height)
- {
-
- if (!d->picture)
- {
- XRenderPictFormat *format;
-
- format = get_format_for_drawable (d,
- GDK_DRAWABLE (d->buffer_pixmap));
- d->picture = XRenderCreatePicture (xdisplay,
- GDK_PIXMAP_XID (buffer_pixmap),
- format, 0, NULL);
- }
- queue_decor_draw (d);
- return FALSE;
- }
-
pixmap = create_pixmap (width, height, 32);
if (!pixmap)
return FALSE;