diff options
author | Hristo Venev <hristo@venev.name> | 2020-02-01 18:58:13 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-02-10 18:58:09 +0100 |
commit | fca32b6334afe69ea10c88de7670c79ae98ce0fd (patch) | |
tree | 66ca6253e253da6029df2981659557439af709ed /include/swaybar | |
parent | Avoid calling strcmp on nullptr (diff) | |
download | sway-fca32b6334afe69ea10c88de7670c79ae98ce0fd.tar.gz sway-fca32b6334afe69ea10c88de7670c79ae98ce0fd.tar.zst sway-fca32b6334afe69ea10c88de7670c79ae98ce0fd.zip |
Do not truncate pointer coordinates to int.
This increases the precision of the clicks when using i3bar.
Diffstat (limited to 'include/swaybar')
-rw-r--r-- | include/swaybar/input.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/swaybar/input.h b/include/swaybar/input.h index 2d38f7a7..6557a29e 100644 --- a/include/swaybar/input.h +++ b/include/swaybar/input.h | |||
@@ -18,7 +18,7 @@ struct swaybar_pointer { | |||
18 | struct wl_cursor_image *cursor_image; | 18 | struct wl_cursor_image *cursor_image; |
19 | struct wl_surface *cursor_surface; | 19 | struct wl_surface *cursor_surface; |
20 | struct swaybar_output *current; | 20 | struct swaybar_output *current; |
21 | int x, y; | 21 | double x, y; |
22 | uint32_t serial; | 22 | uint32_t serial; |
23 | }; | 23 | }; |
24 | 24 | ||