diff --git a/waybox/cursor.c b/waybox/cursor.c index 739f904..58fe76f 100644 --- a/waybox/cursor.c +++ b/waybox/cursor.c @@ -2,13 +2,13 @@ #include "waybox/cursor.h" #include "waybox/xdg_shell.h" -static void process_cursor_move(struct wb_server *server, uint32_t time) { +static void process_cursor_move(struct wb_server *server) { /* Move the grabbed view to the new position. */ server->grabbed_view->x = server->cursor->cursor->x - server->grab_x; server->grabbed_view->y = server->cursor->cursor->y - server->grab_y; } -static void process_cursor_resize(struct wb_server *server, uint32_t time) { +static void process_cursor_resize(struct wb_server *server) { struct wb_view *view = server->grabbed_view; double dx = server->cursor->cursor->x - server->grab_x; double dy = server->cursor->cursor->y - server->grab_y; @@ -42,10 +42,10 @@ static void process_cursor_resize(struct wb_server *server, uint32_t time) { static void process_cursor_motion(struct wb_server *server, uint32_t time) { /* If the mode is non-passthrough, delegate to those functions. */ if (server->cursor->cursor_mode == WB_CURSOR_MOVE) { - process_cursor_move(server, time); + process_cursor_move(server); return; } else if (server->cursor->cursor_mode == WB_CURSOR_RESIZE) { - process_cursor_resize(server, time); + process_cursor_resize(server); return; }