aboutsummaryrefslogtreecommitdiff
path: root/include/sway/input
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-27 15:42:39 -0400
committerGitHub <noreply@github.com>2018-05-27 15:42:39 -0400
commitb2c0ba5b180b75a18e622934bbed61b0f14b1661 (patch)
tree708dec223ee598dced2a22441a30ff3e8cf6459b /include/sway/input
parent53a3fc63c5a81bc7c45f4ccfd770f9cfcec71398 (diff)
parent4d8120ccf3097fd919327707eeccc56a329afbb9 (diff)
Merge pull request #2050 from smlx/focus-fix
Focus containers only on entry.
Diffstat (limited to 'include/sway/input')
-rw-r--r--include/sway/input/cursor.h5
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 @@
struct sway_cursor {
struct sway_seat *seat;
struct wlr_cursor *cursor;
+ struct {
+ double x, y;
+ } previous;
struct wlr_xcursor_manager *xcursor_manager;
struct wl_client *image_client;
@@ -30,7 +33,7 @@ struct sway_cursor {
void sway_cursor_destroy(struct sway_cursor *cursor);
struct sway_cursor *sway_cursor_create(struct sway_seat *seat);
void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
- bool allow_refocusing);
+ bool allow_refocusing);
void dispatch_cursor_button(struct sway_cursor *cursor, uint32_t time_msec,
uint32_t button, enum wlr_button_state state);