diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-01 22:42:08 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-01 22:42:08 +1000 |
commit | 51df1d4ff864f9ba6658d568e24554169363df7b (patch) | |
tree | facdee177d8cc9edf15af501e406790f0033f8ff /sway/commands/border.c | |
parent | Merge branch 'borders' of github:RyanDwyer/sway into borders (diff) | |
download | sway-51df1d4ff864f9ba6658d568e24554169363df7b.tar.gz sway-51df1d4ff864f9ba6658d568e24554169363df7b.tar.zst sway-51df1d4ff864f9ba6658d568e24554169363df7b.zip |
Update cursor when border is changed
Diffstat (limited to 'sway/commands/border.c')
-rw-r--r-- | sway/commands/border.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/commands/border.c b/sway/commands/border.c index 873abb68..1eb06a21 100644 --- a/sway/commands/border.c +++ b/sway/commands/border.c | |||
@@ -1,6 +1,8 @@ | |||
1 | #include "log.h" | 1 | #include "log.h" |
2 | #include "sway/commands.h" | 2 | #include "sway/commands.h" |
3 | #include "sway/config.h" | 3 | #include "sway/config.h" |
4 | #include "sway/input/cursor.h" | ||
5 | #include "sway/input/input-manager.h" | ||
4 | #include "sway/tree/container.h" | 6 | #include "sway/tree/container.h" |
5 | #include "sway/tree/view.h" | 7 | #include "sway/tree/view.h" |
6 | 8 | ||
@@ -37,5 +39,10 @@ struct cmd_results *cmd_border(int argc, char **argv) { | |||
37 | 39 | ||
38 | view_autoconfigure(view); | 40 | view_autoconfigure(view); |
39 | 41 | ||
42 | struct sway_seat *seat = input_manager_current_seat(input_manager); | ||
43 | if (seat->cursor) { | ||
44 | cursor_send_pointer_motion(seat->cursor, 0); | ||
45 | } | ||
46 | |||
40 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 47 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
41 | } | 48 | } |