summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <[email protected]>2020-04-25 01:28:09 +0200
committerSimon Ser <[email protected]>2020-04-28 09:19:22 +0200
commitd214b27fd7d1d2d2839209e18ac3de667c79e6d0 (patch)
treeb00d88604ad918caaa0fca8e54f4d0514434d1f1
parentce07a9bde4cda0a0b0a7ceff1ad568f7761acebc (diff)
tinywl: remove unused variables
-rw-r--r--tinywl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tinywl.c b/tinywl.c
index c44a717..3fe65c1 100644
--- a/tinywl.c
+++ b/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);