mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-26 07:57:59 -04:00
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:
parent
eda04d0560
commit
9f0b1f94c2
8 changed files with 269 additions and 215 deletions
14
terminal.h
14
terminal.h
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue