diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2020-02-01 18:58:13 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2020-02-01 18:58:13 +0100 |
| commit | dea21c71fda0422fa7cc82c1eb7882bec2971257 (patch) | |
| tree | 66ca6253e253da6029df2981659557439af709ed /include | |
| parent | 2baf7beb92c45c19e20d1dca54bff7a0c243703f (diff) | |
Do not truncate pointer coordinates to int.
This increases the precision of the clicks when using i3bar.
Diffstat (limited to 'include')
| -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 { struct wl_cursor_image *cursor_image; struct wl_surface *cursor_surface; struct swaybar_output *current; - int x, y; + double x, y; uint32_t serial; }; |
