diff options
author | 2018-09-22 13:56:51 -0500 | |
---|---|---|
committer | 2018-09-22 13:56:51 -0500 | |
commit | 082488a81c491faa71ddc2c87fe985ef28f5d69d (patch) | |
tree | ee7316a573d5feb5332bb5cef509bd37faf5bcf7 /swaylock/main.c | |
parent | Merge pull request #2660 from RyanDwyer/fix-scratchpad-iteration (diff) | |
parent | swaybar, swaylock, & tree/container: Set cairo font options to render text an... (diff) | |
download | sway-082488a81c491faa71ddc2c87fe985ef28f5d69d.tar.gz sway-082488a81c491faa71ddc2c87fe985ef28f5d69d.tar.zst sway-082488a81c491faa71ddc2c87fe985ef28f5d69d.zip |
Merge pull request #2677 from ggreer/pretty-fonts
Render fonts slightly nicer
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, |