diff options
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 0e68a3c8..9ee4f3cb 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -238,8 +238,8 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier | |||
238 | } | 238 | } |
239 | 239 | ||
240 | static bool handle_pointer_motion(wlc_handle view, uint32_t time, const struct wlc_origin *origin) { | 240 | static bool handle_pointer_motion(wlc_handle view, uint32_t time, const struct wlc_origin *origin) { |
241 | static wlc_handle prev_view = 0; | ||
241 | mouse_origin = *origin; | 242 | mouse_origin = *origin; |
242 | static wlc_handle prev_view = -1; | ||
243 | if (config->focus_follows_mouse && prev_view != view) { | 243 | if (config->focus_follows_mouse && prev_view != view) { |
244 | focus_pointer(); | 244 | focus_pointer(); |
245 | } | 245 | } |