summaryrefslogtreecommitdiffstats
path: root/include/swaybar/bar.h
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-09-17 16:04:09 +0200
committerLibravatar emersion <contact@emersion.fr>2018-09-17 16:04:09 +0200
commit012df55be5a9746d68a62533e2c12f6340b5362f (patch)
tree2478038b93b9af323a9fdba0edf2abd6c1798954 /include/swaybar/bar.h
parentMerge pull request #2649 from wmww/fix-move-crash (diff)
downloadsway-012df55be5a9746d68a62533e2c12f6340b5362f.tar.gz
sway-012df55be5a9746d68a62533e2c12f6340b5362f.tar.zst
sway-012df55be5a9746d68a62533e2c12f6340b5362f.zip
swaybar: use output names instead of output indexes
Diffstat (limited to 'include/swaybar/bar.h')
-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 @@
2#define _SWAYBAR_BAR_H 2#define _SWAYBAR_BAR_H
3#include <wayland-client.h> 3#include <wayland-client.h>
4#include "pool-buffer.h" 4#include "pool-buffer.h"
5#include "wlr-layer-shell-unstable-v1-client-protocol.h"
6#include "xdg-output-unstable-v1-client-protocol.h"
5 7
6struct swaybar_config; 8struct swaybar_config;
7struct swaybar_output; 9struct swaybar_output;
@@ -47,6 +49,7 @@ struct swaybar {
47 struct wl_display *display; 49 struct wl_display *display;
48 struct wl_compositor *compositor; 50 struct wl_compositor *compositor;
49 struct zwlr_layer_shell_v1 *layer_shell; 51 struct zwlr_layer_shell_v1 *layer_shell;
52 struct zxdg_output_manager_v1 *xdg_output_manager;
50 struct wl_shm *shm; 53 struct wl_shm *shm;
51 struct wl_seat *seat; 54 struct wl_seat *seat;
52 55
@@ -65,6 +68,7 @@ struct swaybar_output {
65 struct wl_list link; 68 struct wl_list link;
66 struct swaybar *bar; 69 struct swaybar *bar;
67 struct wl_output *output; 70 struct wl_output *output;
71 struct zxdg_output_v1 *xdg_output;
68 struct wl_surface *surface; 72 struct wl_surface *surface;
69 struct zwlr_layer_surface_v1 *layer_surface; 73 struct zwlr_layer_surface_v1 *layer_surface;
70 uint32_t wl_name; 74 uint32_t wl_name;
@@ -73,7 +77,6 @@ struct swaybar_output {
73 struct wl_list hotspots; 77 struct wl_list hotspots;
74 78
75 char *name; 79 char *name;
76 size_t index;
77 bool focused; 80 bool focused;
78 81
79 uint32_t width, height; 82 uint32_t width, height;