summaryrefslogtreecommitdiff
path: root/include/swaynag
diff options
context:
space:
mode:
authorReza Jelveh <[email protected]>2024-04-15 13:39:41 +0800
committerGitHub <[email protected]>2024-04-15 01:39:41 -0400
commitfb86ed6b0588dfdebfb66ce875bc63cfa0a897f6 (patch)
tree29857a1769107adc58696f08d379f608aa4e29a2 /include/swaynag
parenta5e79676c4bd22fc5902182acf0667907202a465 (diff)
feat: 1.9 merge (#277)
Co-authored-by: William McKinnon <[email protected]> Co-authored-by: Erik Reider <[email protected]>
Diffstat (limited to 'include/swaynag')
-rw-r--r--include/swaynag/swaynag.h6
-rw-r--r--include/swaynag/types.h5
2 files changed, 9 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 @@
#include <strings.h>
#include "list.h"
#include "pool-buffer.h"
+#include "cursor-shape-v1-client-protocol.h"
+
#include "swaynag/types.h"
#define SWAYNAG_MAX_HEIGHT 500
@@ -58,6 +60,7 @@ struct swaynag_button {
struct swaynag_details {
bool visible;
char *message;
+ char *details_text;
int x;
int y;
@@ -67,7 +70,7 @@ struct swaynag_details {
int offset;
int visible_lines;
int total_lines;
- struct swaynag_button button_details;
+ struct swaynag_button *button_details;
struct swaynag_button button_up;
struct swaynag_button button_down;
};
@@ -84,6 +87,7 @@ struct swaynag {
struct swaynag_output *output;
struct zwlr_layer_shell_v1 *layer_shell;
struct zwlr_layer_surface_v1 *layer_surface;
+ struct wp_cursor_shape_manager_v1 *cursor_shape_manager;
struct wl_surface *surface;
uint32_t width;
diff --git a/include/swaynag/types.h b/include/swaynag/types.h
index 18f218e0..9c3c50db 100644
--- a/include/swaynag/types.h
+++ b/include/swaynag/types.h
@@ -1,10 +1,13 @@
#ifndef _SWAYNAG_TYPES_H
#define _SWAYNAG_TYPES_H
+#include <stdint.h>
+#include <pango/pangocairo.h>
+#include "list.h"
+
struct swaynag_type {
char *name;
- char *font; // Used for debugging.
PangoFontDescription *font_description;
char *output;
uint32_t anchors;