diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-12-27 00:32:15 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-12-30 14:17:24 +0100 |
commit | 4d88c957905e7f6b2c8188d218ca22b3e6986fe4 (patch) | |
tree | 5f34ad1667607315cfbcb786ce71845a36595d82 /sway/config | |
parent | Verify seat fallback settings on reload (diff) | |
download | sway-4d88c957905e7f6b2c8188d218ca22b3e6986fe4.tar.gz sway-4d88c957905e7f6b2c8188d218ca22b3e6986fe4.tar.zst sway-4d88c957905e7f6b2c8188d218ca22b3e6986fe4.zip |
hide_cursor: change to a seat subcommand
This makes hide_cursor a seat subcommand, which allows for seat specific
timeouts.
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/seat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/config/seat.c b/sway/config/seat.c index c248990a..d7316c68 100644 --- a/sway/config/seat.c +++ b/sway/config/seat.c | |||
@@ -25,6 +25,7 @@ struct seat_config *new_seat_config(const char* name) { | |||
25 | free(seat); | 25 | free(seat); |
26 | return NULL; | 26 | return NULL; |
27 | } | 27 | } |
28 | seat->hide_cursor_timeout = -1; | ||
28 | 29 | ||
29 | return seat; | 30 | return seat; |
30 | } | 31 | } |
@@ -137,6 +138,10 @@ void merge_seat_config(struct seat_config *dest, struct seat_config *source) { | |||
137 | } | 138 | } |
138 | } | 139 | } |
139 | } | 140 | } |
141 | |||
142 | if (source->hide_cursor_timeout != -1) { | ||
143 | dest->hide_cursor_timeout = source->hide_cursor_timeout; | ||
144 | } | ||
140 | } | 145 | } |
141 | 146 | ||
142 | struct seat_config *copy_seat_config(struct seat_config *seat) { | 147 | struct seat_config *copy_seat_config(struct seat_config *seat) { |