summaryrefslogtreecommitdiff
path: root/src/tofi.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-11-14 23:37:16 +0000
committerPhil Jones <philj56@gmail.com>2021-11-14 23:37:16 +0000
commitd65bdf025f9685f3b332aefffe6f8b5c8dbe8827 (patch)
tree083d90d95e6c103b5c6967fe3ff496ad79a46992 /src/tofi.h
parent929bca3f70c6406e7edbaf42804d8e1d1d9958e2 (diff)
Initial experiments with layer shell.
Diffstat (limited to 'src/tofi.h')
-rw-r--r--src/tofi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tofi.h b/src/tofi.h
index 6a8a457..d7a9dbb 100644
--- a/src/tofi.h
+++ b/src/tofi.h
@@ -8,6 +8,7 @@
#include "entry.h"
#include "image.h"
#include "surface.h"
+#include "wlr-layer-shell-unstable-v1.h"
struct tofi {
/* Globals */
@@ -17,7 +18,7 @@ struct tofi {
struct wl_subcompositor *wl_subcompositor;
struct wl_seat *wl_seat;
struct wl_output *wl_output;
- struct xdg_wm_base *xdg_wm_base;
+ struct zwlr_layer_shell_v1 *zwlr_layer_shell;
uint32_t wl_display_name;
uint32_t wl_registry_name;
@@ -25,7 +26,7 @@ struct tofi {
uint32_t wl_subcompositor_name;
uint32_t wl_seat_name;
uint32_t wl_output_name;
- uint32_t xdg_wm_base_name;
+ uint32_t zwlr_layer_shell_name;
/* Objects */
struct wl_keyboard *wl_keyboard;
@@ -35,8 +36,7 @@ struct tofi {
bool closed;
struct {
struct surface surface;
- struct xdg_surface *xdg_surface;
- struct xdg_toplevel *xdg_toplevel;
+ struct zwlr_layer_surface_v1 *zwlr_layer_surface;
struct image background_image;
struct color background_color;
struct entry entry;