mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
Replace expensive seat_get_config() functions with pointer
This commit is contained in:
parent
980a4e0211
commit
6b87ec4aea
7 changed files with 30 additions and 100 deletions
|
|
@ -83,6 +83,7 @@ struct sway_drag {
|
|||
struct sway_seat {
|
||||
struct wlr_seat *wlr_seat;
|
||||
struct sway_cursor *cursor;
|
||||
struct seat_config *config;
|
||||
|
||||
// Seat scene tree structure
|
||||
// - scene_tree
|
||||
|
|
@ -243,10 +244,6 @@ void seat_for_each_node(struct sway_seat *seat,
|
|||
|
||||
void seat_apply_config(struct sway_seat *seat, struct seat_config *seat_config);
|
||||
|
||||
struct seat_config *seat_get_config(struct sway_seat *seat);
|
||||
|
||||
struct seat_config *seat_get_config_by_name(const char *name);
|
||||
|
||||
void seat_idle_notify_activity(struct sway_seat *seat,
|
||||
enum sway_input_idle_source source);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue