summaryrefslogtreecommitdiff
path: root/swaylock/main.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-09-22 13:56:51 -0500
committerGitHub <[email protected]>2018-09-22 13:56:51 -0500
commit082488a81c491faa71ddc2c87fe985ef28f5d69d (patch)
treeee7316a573d5feb5332bb5cef509bd37faf5bcf7 /swaylock/main.c
parenteae42606e2f6956013c0f68c090b4c0fbc3bee72 (diff)
parentc495164f6059d8f352afeead86a510365cc802a1 (diff)
Merge pull request #2677 from ggreer/pretty-fonts
Render fonts slightly nicer
Diffstat (limited to 'swaylock/main.c')
-rw-r--r--swaylock/main.c8
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) {
}
}
-static void handle_wl_output_geometry(void *data, struct wl_output *output,
+static void handle_wl_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 swaylock_surface *surface = data;
+ surface->subpixel = subpixel;
+ if (surface->state->run_display) {
+ damage_surface(surface);
+ }
}
static void handle_wl_output_mode(void *data, struct wl_output *output,