aboutsummaryrefslogtreecommitdiffstats
path: root/include/swaynag
diff options
context:
space:
mode:
Diffstat (limited to 'include/swaynag')
-rw-r--r--include/swaynag/swaynag.h6
-rw-r--r--include/swaynag/types.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/include/swaynag/swaynag.h b/include/swaynag/swaynag.h
index 2d68b6c9..fb9e9c21 100644
--- a/include/swaynag/swaynag.h
+++ b/include/swaynag/swaynag.h
@@ -4,6 +4,8 @@
4#include <strings.h> 4#include <strings.h>
5#include "list.h" 5#include "list.h"
6#include "pool-buffer.h" 6#include "pool-buffer.h"
7#include "cursor-shape-v1-client-protocol.h"
8
7#include "swaynag/types.h" 9#include "swaynag/types.h"
8 10
9#define SWAYNAG_MAX_HEIGHT 500 11#define SWAYNAG_MAX_HEIGHT 500
@@ -58,6 +60,7 @@ struct swaynag_button {
58struct swaynag_details { 60struct swaynag_details {
59 bool visible; 61 bool visible;
60 char *message; 62 char *message;
63 char *details_text;
61 64
62 int x; 65 int x;
63 int y; 66 int y;
@@ -67,7 +70,7 @@ struct swaynag_details {
67 int offset; 70 int offset;
68 int visible_lines; 71 int visible_lines;
69 int total_lines; 72 int total_lines;
70 struct swaynag_button button_details; 73 struct swaynag_button *button_details;
71 struct swaynag_button button_up; 74 struct swaynag_button button_up;
72 struct swaynag_button button_down; 75 struct swaynag_button button_down;
73}; 76};
@@ -84,6 +87,7 @@ struct swaynag {
84 struct swaynag_output *output; 87 struct swaynag_output *output;
85 struct zwlr_layer_shell_v1 *layer_shell; 88 struct zwlr_layer_shell_v1 *layer_shell;
86 struct zwlr_layer_surface_v1 *layer_surface; 89 struct zwlr_layer_surface_v1 *layer_surface;
90 struct wp_cursor_shape_manager_v1 *cursor_shape_manager;
87 struct wl_surface *surface; 91 struct wl_surface *surface;
88 92
89 uint32_t width; 93 uint32_t width;
diff --git a/include/swaynag/types.h b/include/swaynag/types.h
index 3c3b2754..9c3c50db 100644
--- a/include/swaynag/types.h
+++ b/include/swaynag/types.h
@@ -1,10 +1,14 @@
1#ifndef _SWAYNAG_TYPES_H 1#ifndef _SWAYNAG_TYPES_H
2#define _SWAYNAG_TYPES_H 2#define _SWAYNAG_TYPES_H
3 3
4#include <stdint.h>
5#include <pango/pangocairo.h>
6#include "list.h"
7
4struct swaynag_type { 8struct swaynag_type {
5 char *name; 9 char *name;
6 10
7 char *font; 11 PangoFontDescription *font_description;
8 char *output; 12 char *output;
9 uint32_t anchors; 13 uint32_t anchors;
10 int32_t layer; // enum zwlr_layer_shell_v1_layer or -1 if unset 14 int32_t layer; // enum zwlr_layer_shell_v1_layer or -1 if unset