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:
Rouven Czerwinski 2018-10-10 11:28:37 +02:00
parent 87bc707e9b
commit 41991542ca
5 changed files with 22 additions and 9 deletions

View file

@ -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;