mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Add mouse_warping container
This option always moves the cursor into the middle of the container if the warp variable is true in seat_set_focus_warp. Fixes #2577
This commit is contained in:
parent
87bc707e9b
commit
41991542ca
5 changed files with 22 additions and 9 deletions
|
|
@ -325,6 +325,12 @@ enum focus_wrapping_mode {
|
|||
WRAP_FORCE
|
||||
};
|
||||
|
||||
enum mouse_warping_mode {
|
||||
WARP_NO,
|
||||
WARP_OUTPUT,
|
||||
WARP_CONTAINER
|
||||
};
|
||||
|
||||
/**
|
||||
* The configuration struct. The result of loading a config file.
|
||||
*/
|
||||
|
|
@ -366,7 +372,7 @@ struct sway_config {
|
|||
// Flags
|
||||
bool focus_follows_mouse;
|
||||
bool raise_floating;
|
||||
bool mouse_warping;
|
||||
enum mouse_warping_mode mouse_warping;
|
||||
enum focus_wrapping_mode focus_wrapping;
|
||||
bool active;
|
||||
bool failed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue