summaryrefslogtreecommitdiffstats
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-29 18:02:02 +0100
committerLibravatar S. Christoffer Eliesen <christoffer@eliesen.no>2015-10-29 18:02:02 +0100
commit5ba47d4a44b21500ed3af2670cb1c807b7fed850 (patch)
tree87858d863df950de9e799149bec84817f1dc3ecc /sway/handlers.c
parentcommands: Learn mouse_warping. (diff)
downloadsway-5ba47d4a44b21500ed3af2670cb1c807b7fed850.tar.gz
sway-5ba47d4a44b21500ed3af2670cb1c807b7fed850.tar.zst
sway-5ba47d4a44b21500ed3af2670cb1c807b7fed850.zip
input_state: Remove mouse_origin (x&y). Query wlc instead.
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index e1612dc1..510b4261 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -343,10 +343,6 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w
343 // Update view pointer is on 343 // Update view pointer is on
344 pointer_state.view = container_under_pointer(); 344 pointer_state.view = container_under_pointer();
345 345
346 // Update pointer origin
347 pointer_state.origin.x = origin->x;
348 pointer_state.origin.y = origin->y;
349
350 // Update pointer_state 346 // Update pointer_state
351 switch (button) { 347 switch (button) {
352 case M_LEFT_CLICK: 348 case M_LEFT_CLICK: