mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Removed unused parameters
This commit is contained in:
parent
a2835c8a64
commit
8e39503490
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue