mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
swaybar, swaylock, & tree/container: Set cairo font options to render text and lines with subpixel hinting (if available).
This commit is contained in:
parent
eae42606e2
commit
c495164f60
9 changed files with 53 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue