diff options
| author | Drew DeVault <[email protected]> | 2018-03-31 11:18:29 -0400 | 
|---|---|---|
| committer | Drew DeVault <[email protected]> | 2018-03-31 13:05:45 -0400 | 
| commit | b9d2983324c91f0a2805b1f10afcf2a929f939b4 (patch) | |
| tree | 2a6346a760d051e01142770a16d6b92365ca01ce /sway/input/cursor.c | |
| parent | 9b38ef950fcf293ba11f54c14d8b3a87f050b154 (diff) | |
Fix interaction between warping and following
Diffstat (limited to 'sway/input/cursor.c')
| -rw-r--r-- | sway/input/cursor.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 35dd5dc8..2a096033 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -120,6 +120,9 @@ static struct sway_container *container_at_cursor(struct sway_cursor *cursor,  	return NULL;  } +void _sway_seat_set_focus(struct sway_seat *seat, +		struct sway_container *container, bool warp); +  static void cursor_send_pointer_motion(struct sway_cursor *cursor,  		uint32_t time) {  	struct wlr_seat *seat = cursor->seat->wlr_seat; @@ -127,7 +130,7 @@ static void cursor_send_pointer_motion(struct sway_cursor *cursor,  	double sx, sy;  	struct sway_container *c = container_at_cursor(cursor, &surface, &sx, &sy);  	if (c && config->focus_follows_mouse) { -		sway_seat_set_focus(cursor->seat, c); +		_sway_seat_set_focus(cursor->seat, c, false);  	}  	// reset cursor if switching between clients | 
