wayland: change all wayland callbacks to take a wayland pointer

Instead of passing the terminal to the wayland callbacks, pass a
'struct wayland' pointer.
This commit is contained in:
Daniel Eklöf 2019-10-27 18:43:07 +01:00
parent eda04d0560
commit 9f0b1f94c2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
8 changed files with 269 additions and 215 deletions

View file

@ -200,19 +200,6 @@ struct terminal {
uint32_t default_table[256];
} colors;
struct {
int col;
int row;
int button;
int count;
int last_button;
struct timeval last_time;
/* We used a discrete axis event in the current pointer frame */
bool have_discrete;
} mouse;
struct coord cursor;
struct coord saved_cursor;
struct coord alt_saved_cursor;
@ -228,7 +215,6 @@ struct terminal {
uint32_t cursor;
} cursor_color;
uint32_t input_serial;
struct {
struct coord start;
struct coord end;