summaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2015-08-16 22:11:33 -0400
committerDrew DeVault <[email protected]>2015-08-16 22:11:33 -0400
commitcb504c8f7b0face15a29de5b3b9f12ffe8bc6848 (patch)
tree1351a85fa95badc95b0408387c90c366495c28ab /sway/handlers.c
parent9e56d72e112b20f0d1dc42b377ab9b07816f9d16 (diff)
parentf1d5305dc61944deebbab2322118d7a1a15b998e (diff)
Merge pull request #53 from taiyu-len/master
send_to_back/bring_to_front set when view changes visibility.
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();
}