mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
commands: Learn mouse_warping.
Place mouse at center of focused view when changing to a workspace on a different output, if option is enabled. (This replicates existing i3 option.) This can be triggered in multiple ways: A) via `workspace <name>` which changes output B) via `focus <direction>` which changes output C) via `focus output <name>` which (obviously) changes output
This commit is contained in:
parent
4799d07ac1
commit
78ca619769
6 changed files with 64 additions and 9 deletions
|
|
@ -66,6 +66,7 @@ extern struct pointer_state {
|
|||
} pointer_state;
|
||||
|
||||
void pointer_position_set(struct wlc_origin *new_origin, bool force_focus);
|
||||
void center_pointer_on(swayc_t *view);
|
||||
|
||||
// on button release unset mode depending on the button.
|
||||
// on button press set mode conditionally depending on the button
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue