mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
input_state: Remove mouse_origin (x&y). Query wlc instead.
This commit is contained in:
parent
78ca619769
commit
5ba47d4a44
4 changed files with 17 additions and 20 deletions
|
|
@ -343,10 +343,6 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w
|
|||
// Update view pointer is on
|
||||
pointer_state.view = container_under_pointer();
|
||||
|
||||
// Update pointer origin
|
||||
pointer_state.origin.x = origin->x;
|
||||
pointer_state.origin.y = origin->y;
|
||||
|
||||
// Update pointer_state
|
||||
switch (button) {
|
||||
case M_LEFT_CLICK:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue