summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-03-05 07:49:42 -0500
committerKristian Høgsberg <krh@redhat.com>2009-03-05 07:49:42 -0500
commit0acc6c426c278208202116855de3aef78c5027a0 (patch)
tree52b5963d4650ac4fb86facf647353a3b5a6e78b1
parent99f090db3eb6e33d4ec52e451113abc6b14ed267 (diff)
downloadwayland-0acc6c426c278208202116855de3aef78c5027a0.tar.gz
wayland-0acc6c426c278208202116855de3aef78c5027a0.tar.xz
wayland-0acc6c426c278208202116855de3aef78c5027a0.zip
Renable blurred dropshadows and fix call to blur_surface().
-rw-r--r--window.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/window.c b/window.c
index 28fb97a..0f34959 100644
--- a/window.c
+++ b/window.c
@@ -36,6 +36,7 @@
#include "wayland-util.h"
#include "wayland-client.h"
#include "wayland-glib.h"
+#include "cairo-util.h"
#include "window.h"
@@ -117,6 +118,7 @@ window_draw_decorations(struct window *window)
rounded_rect(cr, 0, 0, width, height, radius);
cairo_fill(cr);
+#define SLOW_BUT_PWETTY
#ifdef SLOW_BUT_PWETTY
/* FIXME: Aw, pretty drop shadows now have to fallback to sw.
* Ideally we should have convolution filters in cairo, but we
@@ -126,7 +128,7 @@ window_draw_decorations(struct window *window)
cairo_surface_t *map;
map = cairo_drm_surface_map(window->cairo_surface);
- blur_surface(map);
+ blur_surface(map, 32);
cairo_drm_surface_unmap(window->cairo_surface, map);
}
#endif