diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-27 15:42:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-27 15:42:39 -0400 |
commit | b2c0ba5b180b75a18e622934bbed61b0f14b1661 (patch) | |
tree | 708dec223ee598dced2a22441a30ff3e8cf6459b /include | |
parent | Merge pull request #2055 from RedSoxFan/output-destroy-workspace-ipc (diff) | |
parent | Improve comment. (diff) | |
download | sway-b2c0ba5b180b75a18e622934bbed61b0f14b1661.tar.gz sway-b2c0ba5b180b75a18e622934bbed61b0f14b1661.tar.zst sway-b2c0ba5b180b75a18e622934bbed61b0f14b1661.zip |
Merge pull request #2050 from smlx/focus-fix
Focus containers only on entry.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/input/cursor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h index 42c894a4..5dd109ca 100644 --- a/include/sway/input/cursor.h +++ b/include/sway/input/cursor.h | |||
@@ -6,6 +6,9 @@ | |||
6 | struct sway_cursor { | 6 | struct sway_cursor { |
7 | struct sway_seat *seat; | 7 | struct sway_seat *seat; |
8 | struct wlr_cursor *cursor; | 8 | struct wlr_cursor *cursor; |
9 | struct { | ||
10 | double x, y; | ||
11 | } previous; | ||
9 | struct wlr_xcursor_manager *xcursor_manager; | 12 | struct wlr_xcursor_manager *xcursor_manager; |
10 | 13 | ||
11 | struct wl_client *image_client; | 14 | struct wl_client *image_client; |
@@ -30,7 +33,7 @@ struct sway_cursor { | |||
30 | void sway_cursor_destroy(struct sway_cursor *cursor); | 33 | void sway_cursor_destroy(struct sway_cursor *cursor); |
31 | struct sway_cursor *sway_cursor_create(struct sway_seat *seat); | 34 | struct sway_cursor *sway_cursor_create(struct sway_seat *seat); |
32 | void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec, | 35 | void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec, |
33 | bool allow_refocusing); | 36 | bool allow_refocusing); |
34 | void dispatch_cursor_button(struct sway_cursor *cursor, uint32_t time_msec, | 37 | void dispatch_cursor_button(struct sway_cursor *cursor, uint32_t time_msec, |
35 | uint32_t button, enum wlr_button_state state); | 38 | uint32_t button, enum wlr_button_state state); |
36 | 39 | ||