From fca32b6334afe69ea10c88de7670c79ae98ce0fd Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Sat, 1 Feb 2020 18:58:13 +0100 Subject: Do not truncate pointer coordinates to int. This increases the precision of the clicks when using i3bar. --- include/swaybar/input.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/swaybar/input.h') 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; }; -- cgit v1.2.3-54-g00ecf