aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaynag
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-30 01:02:50 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-08-01 22:47:54 -0400
commit0ef3988438c251c84251ef7a2723791856505065 (patch)
tree9b9273ad89656e1244b24ceb2a337387cdf939d6 /include/swaynag
parentswaynag: allow more config options (diff)
downloadsway-0ef3988438c251c84251ef7a2723791856505065.tar.gz
sway-0ef3988438c251c84251ef7a2723791856505065.tar.zst
sway-0ef3988438c251c84251ef7a2723791856505065.zip
swaynag: fix hidpi
Diffstat (limited to 'include/swaynag')
-rw-r--r--include/swaynag/swaynag.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/swaynag/swaynag.h b/include/swaynag/swaynag.h
index dd6fe0cd..09b95326 100644
--- a/include/swaynag/swaynag.h
+++ b/include/swaynag/swaynag.h
@@ -9,6 +9,8 @@
9 9
10#define SWAYNAG_MAX_HEIGHT 500 10#define SWAYNAG_MAX_HEIGHT 500
11 11
12struct swaynag;
13
12enum swaynag_action_type { 14enum swaynag_action_type {
13 SWAYNAG_ACTION_DISMISS, 15 SWAYNAG_ACTION_DISMISS,
14 SWAYNAG_ACTION_EXPAND, 16 SWAYNAG_ACTION_EXPAND,
@@ -28,6 +30,9 @@ struct swaynag_output {
28 char *name; 30 char *name;
29 struct wl_output *wl_output; 31 struct wl_output *wl_output;
30 uint32_t wl_name; 32 uint32_t wl_name;
33 uint32_t scale;
34 struct swaynag *swaynag;
35 struct wl_list link;
31}; 36};
32 37
33struct swaynag_button { 38struct swaynag_button {
@@ -67,7 +72,8 @@ struct swaynag {
67 struct wl_shm *shm; 72 struct wl_shm *shm;
68 struct swaynag_pointer pointer; 73 struct swaynag_pointer pointer;
69 struct zxdg_output_manager_v1 *xdg_output_manager; 74 struct zxdg_output_manager_v1 *xdg_output_manager;
70 struct swaynag_output output; 75 struct wl_list outputs; // struct swaynag_output
76 struct swaynag_output *output;
71 struct zwlr_layer_shell_v1 *layer_shell; 77 struct zwlr_layer_shell_v1 *layer_shell;
72 struct zwlr_layer_surface_v1 *layer_surface; 78 struct zwlr_layer_surface_v1 *layer_surface;
73 struct wl_surface *surface; 79 struct wl_surface *surface;