Removed unused parameters

This commit is contained in:
Keith Bowes 2020-02-26 10:03:06 -05:00
parent a2835c8a64
commit 8e39503490

View file

@ -2,13 +2,13 @@
#include "waybox/cursor.h" #include "waybox/cursor.h"
#include "waybox/xdg_shell.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. */ /* Move the grabbed view to the new position. */
server->grabbed_view->x = server->cursor->cursor->x - server->grab_x; server->grabbed_view->x = server->cursor->cursor->x - server->grab_x;
server->grabbed_view->y = server->cursor->cursor->y - server->grab_y; 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; struct wb_view *view = server->grabbed_view;
double dx = server->cursor->cursor->x - server->grab_x; double dx = server->cursor->cursor->x - server->grab_x;
double dy = server->cursor->cursor->y - server->grab_y; 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) { static void process_cursor_motion(struct wb_server *server, uint32_t time) {
/* If the mode is non-passthrough, delegate to those functions. */ /* If the mode is non-passthrough, delegate to those functions. */
if (server->cursor->cursor_mode == WB_CURSOR_MOVE) { if (server->cursor->cursor_mode == WB_CURSOR_MOVE) {
process_cursor_move(server, time); process_cursor_move(server);
return; return;
} else if (server->cursor->cursor_mode == WB_CURSOR_RESIZE) { } else if (server->cursor->cursor_mode == WB_CURSOR_RESIZE) {
process_cursor_resize(server, time); process_cursor_resize(server);
return; return;
} }