diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-12-15 03:21:08 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-12-15 09:26:50 +0100 |
commit | 35a82a869328ecf387f1490ca6ecfca8bdc1ab39 (patch) | |
tree | 64984913256a543417b5932e0863ac02d9de1be8 /include | |
parent | cd714cc12aa29e4676d248b3327b63ec1788c08f (diff) |
swaybar: fix cursor scale
This fixes a few issues with swaybar's cursor scaling:
1. The cursor scale is now changed when the output scale changes
2. The cursor scale is no longer bound by the max output scale when
swaybar is launched
3. Related to the previous item, the cursor is no longer tiny on low
scale outputs after the max output scale has changed
This also bumps up `wl_compositor` to version 4 to allow usage of
`wl_surface_damage_buffer`.
Diffstat (limited to 'include')
-rw-r--r-- | include/swaybar/input.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/swaybar/input.h b/include/swaybar/input.h index 390309a0..f480d009 100644 --- a/include/swaybar/input.h +++ b/include/swaybar/input.h @@ -4,6 +4,7 @@ #include <wayland-client.h> #include "list.h" +struct swaybar; struct swaybar_output; struct swaybar_pointer { @@ -13,6 +14,7 @@ struct swaybar_pointer { struct wl_surface *cursor_surface; struct swaybar_output *current; int x, y; + uint32_t serial; }; enum x11_button { @@ -45,6 +47,8 @@ struct swaybar_hotspot { extern const struct wl_seat_listener seat_listener; +void update_cursor(struct swaybar *bar); + void free_hotspots(struct wl_list *list); #endif |