aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/bar.c')
-rw-r--r--swaybar/bar.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index 69069f40..ab307fd4 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -319,10 +319,14 @@ static bool bar_uses_output(struct swaybar *bar, const char *name) {
319 return false; 319 return false;
320} 320}
321 321
322static void output_geometry(void *data, struct wl_output *output, int32_t x, 322static void output_geometry(void *data, struct wl_output *wl_output, int32_t x,
323 int32_t y, int32_t width_mm, int32_t height_mm, int32_t subpixel, 323 int32_t y, int32_t width_mm, int32_t height_mm, int32_t subpixel,
324 const char *make, const char *model, int32_t transform) { 324 const char *make, const char *model, int32_t transform) {
325 // Who cares 325 struct swaybar_output *output = data;
326 output->subpixel = subpixel;
327 if (output->surface) {
328 render_frame(output->bar, output);
329 }
326} 330}
327 331
328static void output_mode(void *data, struct wl_output *output, uint32_t flags, 332static void output_mode(void *data, struct wl_output *output, uint32_t flags,