aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-17 16:04:09 +0200
committeremersion <contact@emersion.fr>2018-09-17 16:04:09 +0200
commit012df55be5a9746d68a62533e2c12f6340b5362f (patch)
tree2478038b93b9af323a9fdba0edf2abd6c1798954 /include
parent5abf8322021efb991dbc7bbca584f20a57cffb6c (diff)
swaybar: use output names instead of output indexes
Diffstat (limited to 'include')
-rw-r--r--include/swaybar/bar.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h
index 1cecea71..4065fb8b 100644
--- a/include/swaybar/bar.h
+++ b/include/swaybar/bar.h
@@ -2,6 +2,8 @@
#define _SWAYBAR_BAR_H
#include <wayland-client.h>
#include "pool-buffer.h"
+#include "wlr-layer-shell-unstable-v1-client-protocol.h"
+#include "xdg-output-unstable-v1-client-protocol.h"
struct swaybar_config;
struct swaybar_output;
@@ -47,6 +49,7 @@ struct swaybar {
struct wl_display *display;
struct wl_compositor *compositor;
struct zwlr_layer_shell_v1 *layer_shell;
+ struct zxdg_output_manager_v1 *xdg_output_manager;
struct wl_shm *shm;
struct wl_seat *seat;
@@ -65,6 +68,7 @@ struct swaybar_output {
struct wl_list link;
struct swaybar *bar;
struct wl_output *output;
+ struct zxdg_output_v1 *xdg_output;
struct wl_surface *surface;
struct zwlr_layer_surface_v1 *layer_surface;
uint32_t wl_name;
@@ -73,7 +77,6 @@ struct swaybar_output {
struct wl_list hotspots;
char *name;
- size_t index;
bool focused;
uint32_t width, height;