#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"
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);
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;
smoke->b[0].d[k] += 1;
}
- return POINTER_HAND1;
+ return CURSOR_HAND1;
}
static void