diff options
author | Geoff Greer <geoff@greer.fm> | 2018-09-20 20:37:08 -0700 |
---|---|---|
committer | Geoff Greer <geoff@greer.fm> | 2018-09-22 11:34:21 -0700 |
commit | c495164f6059d8f352afeead86a510365cc802a1 (patch) | |
tree | ee7316a573d5feb5332bb5cef509bd37faf5bcf7 /swaylock/main.c | |
parent | Merge pull request #2660 from RyanDwyer/fix-scratchpad-iteration (diff) | |
download | sway-c495164f6059d8f352afeead86a510365cc802a1.tar.gz sway-c495164f6059d8f352afeead86a510365cc802a1.tar.zst sway-c495164f6059d8f352afeead86a510365cc802a1.zip |
swaybar, swaylock, & tree/container: Set cairo font options to render text and lines with subpixel hinting (if available).
Diffstat (limited to 'swaylock/main.c')
-rw-r--r-- | swaylock/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/swaylock/main.c b/swaylock/main.c index 668a8742..c25c8eec 100644 --- a/swaylock/main.c +++ b/swaylock/main.c | |||
@@ -195,11 +195,15 @@ void damage_state(struct swaylock_state *state) { | |||
195 | } | 195 | } |
196 | } | 196 | } |
197 | 197 | ||
198 | static void handle_wl_output_geometry(void *data, struct wl_output *output, | 198 | static void handle_wl_output_geometry(void *data, struct wl_output *wl_output, |
199 | int32_t x, int32_t y, int32_t width_mm, int32_t height_mm, | 199 | int32_t x, int32_t y, int32_t width_mm, int32_t height_mm, |
200 | int32_t subpixel, const char *make, const char *model, | 200 | int32_t subpixel, const char *make, const char *model, |
201 | int32_t transform) { | 201 | int32_t transform) { |
202 | // Who cares | 202 | struct swaylock_surface *surface = data; |
203 | surface->subpixel = subpixel; | ||
204 | if (surface->state->run_display) { | ||
205 | damage_surface(surface); | ||
206 | } | ||
203 | } | 207 | } |
204 | 208 | ||
205 | static void handle_wl_output_mode(void *data, struct wl_output *output, | 209 | static void handle_wl_output_mode(void *data, struct wl_output *output, |