summaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authortaiyu <[email protected]>2015-08-16 18:59:12 -0700
committertaiyu <[email protected]>2015-08-16 18:59:12 -0700
commit40772387829736f5a73bc4f97968b2e44b28a333 (patch)
tree9bd9d5380a4da8f1abdbedaf85367b5daeecc9f4 /sway/handlers.c
parentffb34583220005889fea117d3b9bc65a4714b6bf (diff)
sends hidden views to back, visible view to front
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c2
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
}
static bool handle_pointer_motion(wlc_handle view, uint32_t time, const struct wlc_origin *origin) {
+ static wlc_handle prev_view = 0;
mouse_origin = *origin;
- static wlc_handle prev_view = -1;
if (config->focus_follows_mouse && prev_view != view) {
focus_pointer();
}