diff options
author | Daniel Eklöf <daniel@ekloef.se> | 2019-06-01 21:05:09 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-06-05 11:00:10 -0400 |
commit | 190546fd315a24c04006fb1b177069933f4350da (patch) | |
tree | db0910b4931625d259f14b22a56b54095a8466bd /include | |
parent | cmd_hide_edge_borders: add missing arg count check (diff) | |
download | sway-190546fd315a24c04006fb1b177069933f4350da.tar.gz sway-190546fd315a24c04006fb1b177069933f4350da.tar.zst sway-190546fd315a24c04006fb1b177069933f4350da.zip |
add seat sub command 'xcursor_theme'
New 'seat <name> xcursor_theme <theme> [<size>]' command that
configures the default xcursor theme.
The default seat's xcursor theme is also propagated to XWayland, and
exported through the XCURSOR_THEME and XCURSOR_SIZE environment
variables. This is done every time the default seat's configuration is
changed.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/config.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index c4903788..927296b0 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -278,6 +278,7 @@ sway_cmd seat_cmd_cursor; | |||
278 | sway_cmd seat_cmd_fallback; | 278 | sway_cmd seat_cmd_fallback; |
279 | sway_cmd seat_cmd_hide_cursor; | 279 | sway_cmd seat_cmd_hide_cursor; |
280 | sway_cmd seat_cmd_pointer_constraint; | 280 | sway_cmd seat_cmd_pointer_constraint; |
281 | sway_cmd seat_cmd_xcursor_theme; | ||
281 | 282 | ||
282 | sway_cmd cmd_ipc_cmd; | 283 | sway_cmd cmd_ipc_cmd; |
283 | sway_cmd cmd_ipc_events; | 284 | sway_cmd cmd_ipc_events; |
diff --git a/include/sway/config.h b/include/sway/config.h index b94a35f3..311adb16 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -165,6 +165,10 @@ struct seat_config { | |||
165 | list_t *attachments; // list of seat_attachment configs | 165 | list_t *attachments; // list of seat_attachment configs |
166 | int hide_cursor_timeout; | 166 | int hide_cursor_timeout; |
167 | enum seat_config_allow_constrain allow_constrain; | 167 | enum seat_config_allow_constrain allow_constrain; |
168 | struct { | ||
169 | char *name; | ||
170 | int size; | ||
171 | } xcursor_theme; | ||
168 | }; | 172 | }; |
169 | 173 | ||
170 | enum config_dpms { | 174 | enum config_dpms { |