diff options
author | Drew DeVault <[email protected]> | 2018-09-22 13:56:51 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2018-09-22 13:56:51 -0500 |
commit | 082488a81c491faa71ddc2c87fe985ef28f5d69d (patch) | |
tree | ee7316a573d5feb5332bb5cef509bd37faf5bcf7 /swaybar/bar.c | |
parent | eae42606e2f6956013c0f68c090b4c0fbc3bee72 (diff) | |
parent | c495164f6059d8f352afeead86a510365cc802a1 (diff) |
Merge pull request #2677 from ggreer/pretty-fonts
Render fonts slightly nicer
Diffstat (limited to 'swaybar/bar.c')
-rw-r--r-- | swaybar/bar.c | 8 |
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) { return false; } -static void output_geometry(void *data, struct wl_output *output, int32_t x, +static void output_geometry(void *data, struct wl_output *wl_output, int32_t x, int32_t y, int32_t width_mm, int32_t height_mm, int32_t subpixel, const char *make, const char *model, int32_t transform) { - // Who cares + struct swaybar_output *output = data; + output->subpixel = subpixel; + if (output->surface) { + render_frame(output->bar, output); + } } static void output_mode(void *data, struct wl_output *output, uint32_t flags, |