diff options
author | Luminarys <[email protected]> | 2015-08-15 13:55:06 -0500 |
---|---|---|
committer | Luminarys <[email protected]> | 2015-08-15 13:55:06 -0500 |
commit | 618b3df0513dd2c63f6e64db1e125a609e1ec6b9 (patch) | |
tree | 994deaa15dbb04cc6e7cd7a0a79cf44fa18dbdeb /sway/handlers.c | |
parent | b01a04f22b8eaacfbcee099797b4c664cfb97b97 (diff) |
Fixed workspace switching in multimonitor layouts
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index a85eb681..4b1216bc 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -15,7 +15,7 @@ static struct wlc_origin mouse_origin; static bool pointer_test(swayc_t *view, void *_origin) { const struct wlc_origin *origin = _origin; - //Determine the output that the view is under + //Determine the output that the view is under swayc_t *parent = view; while (parent->type != C_OUTPUT) { parent = parent->parent; @@ -192,9 +192,9 @@ static bool handle_pointer_motion(wlc_handle view, uint32_t time, const struct w swayc_t *c = find_container(&root_container, pointer_test, (void *)origin); swayc_t *focused = get_focused_container(&root_container); if (c && c != focused) { - sway_log(L_DEBUG, "Mouse pointer at X: %d, Y: %d", origin->x, origin->y); - sway_log(L_DEBUG, "Container to focus on is at X: %d, Y: %d, with W: %d, H: %d", c->x, c->y, c->width, c->height); - sway_log(L_DEBUG, "Focused container is at X: %d, Y: %d, with W: %d, H: %d", c->x, c->y, c->width, c->height); + sway_log(L_DEBUG, "Mouse pointer at X: %d, Y: %d", origin->x, origin->y); + sway_log(L_DEBUG, "Container to focus on is at X: %d, Y: %d, with W: %d, H: %d", c->x, c->y, c->width, c->height); + sway_log(L_DEBUG, "Focused container is at X: %d, Y: %d, with W: %d, H: %d", c->x, c->y, c->width, c->height); sway_log(L_DEBUG, "Switching focus to %p", c); unfocus_all(&root_container); focus_view(c); |