diff options
author | Brian Ashworth <RedSoxFan@users.noreply.github.com> | 2018-09-17 13:38:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 13:38:56 -0400 |
commit | 15dadaaa4496085e064f290708267e703b3cd029 (patch) | |
tree | 2478038b93b9af323a9fdba0edf2abd6c1798954 /include | |
parent | 5abf8322021efb991dbc7bbca584f20a57cffb6c (diff) | |
parent | 012df55be5a9746d68a62533e2c12f6340b5362f (diff) | |
download | sway-15dadaaa4496085e064f290708267e703b3cd029.tar.xz |
Merge pull request #2652 from emersion/swaybar-output-names
swaybar: use output names instead of output indexes
Diffstat (limited to 'include')
-rw-r--r-- | include/swaybar/bar.h | 5 |
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; |