aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaybar
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-12-15 03:21:08 -0500
committerLibravatar emersion <contact@emersion.fr>2018-12-15 09:26:50 +0100
commit35a82a869328ecf387f1490ca6ecfca8bdc1ab39 (patch)
tree64984913256a543417b5932e0863ac02d9de1be8 /include/swaybar
parentMerge pull request #3291 from RedSoxFan/fix-focus-nonvis (diff)
downloadsway-35a82a869328ecf387f1490ca6ecfca8bdc1ab39.tar.gz
sway-35a82a869328ecf387f1490ca6ecfca8bdc1ab39.tar.zst
sway-35a82a869328ecf387f1490ca6ecfca8bdc1ab39.zip
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/swaybar')
-rw-r--r--include/swaybar/input.h4
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 @@
4#include <wayland-client.h> 4#include <wayland-client.h>
5#include "list.h" 5#include "list.h"
6 6
7struct swaybar;
7struct swaybar_output; 8struct swaybar_output;
8 9
9struct swaybar_pointer { 10struct swaybar_pointer {
@@ -13,6 +14,7 @@ struct swaybar_pointer {
13 struct wl_surface *cursor_surface; 14 struct wl_surface *cursor_surface;
14 struct swaybar_output *current; 15 struct swaybar_output *current;
15 int x, y; 16 int x, y;
17 uint32_t serial;
16}; 18};
17 19
18enum x11_button { 20enum x11_button {
@@ -45,6 +47,8 @@ struct swaybar_hotspot {
45 47
46extern const struct wl_seat_listener seat_listener; 48extern const struct wl_seat_listener seat_listener;
47 49
50void update_cursor(struct swaybar *bar);
51
48void free_hotspots(struct wl_list *list); 52void free_hotspots(struct wl_list *list);
49 53
50#endif 54#endif