mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-31 22:25:28 -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/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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue