aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-04-25 01:28:09 +0200
committerSimon Ser <contact@emersion.fr>2020-04-28 09:19:22 +0200
commit9d650a7c1aece894a1366c7ad8f8e1c4ee8565a9 (patch)
tree7492e31d27d419c00aa83ff13e71c453d9a1d29d
parentad28f5753315f8aefd1fb848c5975bc58013131b (diff)
tinywl: remove unused variables
-rw-r--r--tinywl/tinywl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c
index c44a7175..3fe65c16 100644
--- a/tinywl/tinywl.c
+++ b/tinywl/tinywl.c
@@ -311,8 +311,6 @@ static bool view_at(struct tinywl_view *view,
double view_sx = lx - view->x;
double view_sy = ly - view->y;
- struct wlr_surface_state *state = &view->xdg_surface->surface->current;
-
double _sx, _sy;
struct wlr_surface *_surface = NULL;
_surface = wlr_xdg_surface_surface_at(
@@ -476,7 +474,6 @@ static void server_cursor_button(struct wl_listener *listener, void *data) {
wlr_seat_pointer_notify_button(server->seat,
event->time_msec, event->button, event->state);
double sx, sy;
- struct wlr_seat *seat = server->seat;
struct wlr_surface *surface;
struct tinywl_view *view = desktop_view_at(server,
server->cursor->x, server->cursor->y, &surface, &sx, &sy);