window.c: Increase drop shadow fluffiness
diff --git a/clients/cairo-util.c b/clients/cairo-util.c
index 6d5794b..09dd06e 100644
--- a/clients/cairo-util.c
+++ b/clients/cairo-util.c
@@ -52,7 +52,7 @@
 	uint8_t *src, *dst;
 	uint32_t *s, *d, a, p;
 	int i, j, k, size, half;
-	uint32_t kernel[49];
+	uint32_t kernel[71];
 	double f;
 
 	size = ARRAY_LENGTH(kernel);
@@ -166,7 +166,7 @@
 
 	/* Top stretch */
 	cairo_matrix_init_translate(&matrix, 64, 0);
-	cairo_matrix_scale(&matrix, 64.0 / (width - 2 * margin), 1);
+	cairo_matrix_scale(&matrix, 64.0 / width, 1);
 	cairo_matrix_translate(&matrix, -x - width / 2, -y);
 	cairo_pattern_set_matrix(pattern, &matrix);
 	cairo_rectangle(cr, x + margin, y, width - 2 * margin, margin);
@@ -191,7 +191,7 @@
 
 	/* Left stretch */
 	cairo_matrix_init_translate(&matrix, 0, 64);
-	cairo_matrix_scale(&matrix, 1, 64.0 / (height - 2 * margin));
+	cairo_matrix_scale(&matrix, 1, 64.0 / height);
 	cairo_matrix_translate(&matrix, -x, -y - height / 2);
 	cairo_pattern_set_matrix(pattern, &matrix);
 	cairo_reset_clip(cr);
diff --git a/clients/window.c b/clients/window.c
index 35c0333..5d33a3c 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -1162,7 +1162,7 @@
 	cairo_t *cr;
 	cairo_text_extents_t extents;
 	cairo_surface_t *source;
-	int x, y, width, height, shadow_dx = 3, shadow_dy = 3;
+	int x, y, width, height;
 	struct window *window = widget->window;
 
 	if (window->type == TYPE_FULLSCREEN)
@@ -1177,20 +1177,20 @@
 	cairo_set_source_rgba(cr, 0, 0, 0, 0);
 	cairo_paint(cr);
 
-	cairo_set_source_rgba(cr, 0, 0, 0, 0.6);
+	cairo_set_source_rgba(cr, 0, 0, 0, 0.45);
 	tile_mask(cr, window->display->shadow,
-		  shadow_dx, shadow_dy, width, height,
-		  frame->margin + 10 - shadow_dx,
-		  frame->margin + 10 - shadow_dy);
+		  2, 2, width + 8, height + 8,
+		  64, 64);
 
 	if (window->keyboard_device)
 		source = window->display->active_frame;
 	else
 		source = window->display->inactive_frame;
 
-	tile_source(cr, source, 0, 0, width, height,
-		    frame->margin + frame->width,
-		    frame->margin + frame->titlebar_height);
+	tile_source(cr, source,
+		    frame->margin, frame->margin,
+		    width - frame->margin * 2, height - frame->margin * 2,
+		    frame->width, frame->titlebar_height);
 
 	cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
 	cairo_select_font_face(cr, "sans",
@@ -1199,7 +1199,7 @@
 	cairo_set_font_size(cr, 14);
 	cairo_text_extents(cr, window->title, &extents);
 	x = (width - extents.width) / 2;
-	y = 24 - extents.y_bearing;
+	y = frame->margin + 8 - extents.y_bearing;
 	if (window->keyboard_device) {
 		cairo_move_to(cr, x + 1, y  + 1);
 		cairo_set_source_rgb(cr, 1, 1, 1);
@@ -1391,7 +1391,7 @@
 
 	frame->widget = window_add_widget(window, frame);
 	frame->child = widget_add_widget(frame->widget, data);
-	frame->margin = 16;
+	frame->margin = 32;
 	frame->width = 4;
 	frame->titlebar_height = 30
 ;
@@ -2718,7 +2718,7 @@
 	cr = cairo_create(d->shadow);
 	cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
 	cairo_set_source_rgba(cr, 0, 0, 0, 1);
-	rounded_rect(cr, 16, 16, 112, 112, d->frame_radius);
+	rounded_rect(cr, 32, 32, 96, 96, d->frame_radius);
 	cairo_fill(cr);
 	cairo_destroy(cr);
 	blur_surface(d->shadow, 64);
@@ -2734,7 +2734,7 @@
 	cairo_set_source(cr, pattern);
 	cairo_pattern_destroy(pattern);
 
-	rounded_rect(cr, 16, 16, 112, 112, d->frame_radius);
+	rounded_rect(cr, 0, 0, 128, 128, d->frame_radius);
 	cairo_fill(cr);
 	cairo_destroy(cr);
 
@@ -2743,7 +2743,7 @@
 	cr = cairo_create(d->inactive_frame);
 	cairo_set_operator(cr, CAIRO_OPERATOR_OVER);
 	cairo_set_source_rgba(cr, 0.75, 0.75, 0.75, 1);
-	rounded_rect(cr, 16, 16, 112, 112, d->frame_radius);
+	rounded_rect(cr, 0, 0, 128, 128, d->frame_radius);
 	cairo_fill(cr);
 	cairo_destroy(cr);
 }