mirror of
https://github.com/swaywm/sway.git
synced 2026-04-19 06:46:40 -04:00
Merge 8c66e8da40 into 909a2ddb5f
This commit is contained in:
commit
fbbf42c1f3
10 changed files with 68 additions and 5 deletions
|
|
@ -156,6 +156,7 @@ sway_cmd cmd_mark;
|
|||
sway_cmd cmd_max_render_time;
|
||||
sway_cmd cmd_mode;
|
||||
sway_cmd cmd_mouse_warping;
|
||||
sway_cmd cmd_mouse_warping_position;
|
||||
sway_cmd cmd_move;
|
||||
sway_cmd cmd_new_float;
|
||||
sway_cmd cmd_new_window;
|
||||
|
|
|
|||
|
|
@ -474,6 +474,14 @@ enum mouse_warping_mode {
|
|||
WARP_CONTAINER,
|
||||
};
|
||||
|
||||
enum mouse_warping_position {
|
||||
WARP_POS_CENTER,
|
||||
WARP_POS_TOPLEFT,
|
||||
WARP_POS_TOPRIGHT,
|
||||
WARP_POS_BOTLEFT,
|
||||
WARP_POS_BOTRIGHT,
|
||||
};
|
||||
|
||||
enum alignment {
|
||||
ALIGN_LEFT,
|
||||
ALIGN_CENTER,
|
||||
|
|
@ -537,6 +545,7 @@ struct sway_config {
|
|||
// Flags
|
||||
enum focus_follows_mouse_mode focus_follows_mouse;
|
||||
enum mouse_warping_mode mouse_warping;
|
||||
enum mouse_warping_position mouse_warping_position;
|
||||
enum focus_wrapping_mode focus_wrapping;
|
||||
bool active;
|
||||
bool failed;
|
||||
|
|
|
|||
|
|
@ -127,7 +127,9 @@ void cursor_set_image_surface(struct sway_cursor *cursor,
|
|||
struct wl_client *client);
|
||||
|
||||
void cursor_warp_to_container(struct sway_cursor *cursor,
|
||||
struct sway_container *container, bool force);
|
||||
struct sway_container *container,
|
||||
enum mouse_warping_position pos,
|
||||
bool force);
|
||||
|
||||
void cursor_warp_to_workspace(struct sway_cursor *cursor,
|
||||
struct sway_workspace *workspace);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue