toytoolkit: Don't draw shadows for maximized windows.
[profile/ivi/weston.git] / clients / smoke.c
index d618100..69d4f23 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
-#include <fcntl.h>
-#include <unistd.h>
 #include <math.h>
 #include <time.h>
 #include <cairo.h>
-#include <glib.h>
 
 #include <wayland-client.h>
 #include "window.h"
@@ -220,8 +217,6 @@ redraw_handler(struct widget *widget, void *data)
 
        render(smoke, surface);
 
-       display_surface_damage(smoke->display, surface,
-                              0, 0, smoke->width, smoke->height);
        window_damage(smoke->window, 0, 0, smoke->width, smoke->height);
 
        cairo_surface_destroy(surface);
@@ -232,7 +227,7 @@ redraw_handler(struct widget *widget, void *data)
 
 static int
 smoke_motion_handler(struct widget *widget, struct input *input,
-                    uint32_t time, int32_t x, int32_t y, void *data)
+                    uint32_t time, float x, float y, void *data)
 {
        struct smoke *smoke = data;
        int i, i0, i1, j, j0, j1, k, d = 5;
@@ -263,7 +258,7 @@ smoke_motion_handler(struct widget *widget, struct input *input,
                        smoke->b[0].d[k] += 1;
                }
 
-       return POINTER_HAND1;
+       return CURSOR_HAND1;
 }
 
 static void