sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 51df1d4ff864f9ba6658d568e24554169363df7b
parent 4fa5e2d9db2879b665d6447692017b82ff78e186
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date:   Tue,  1 May 2018 22:42:08 +1000

Update cursor when border is changed

Diffstat:
Msway/commands/border.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/sway/commands/border.c b/sway/commands/border.c @@ -1,6 +1,8 @@ #include "log.h" #include "sway/commands.h" #include "sway/config.h" +#include "sway/input/cursor.h" +#include "sway/input/input-manager.h" #include "sway/tree/container.h" #include "sway/tree/view.h" @@ -37,5 +39,10 @@ struct cmd_results *cmd_border(int argc, char **argv) { view_autoconfigure(view); + struct sway_seat *seat = input_manager_current_seat(input_manager); + if (seat->cursor) { + cursor_send_pointer_motion(seat->cursor, 0); + } + return cmd_results_new(CMD_SUCCESS, NULL, NULL); }