Add client support for HiDPI

This adds HiDPI support to swaybar, swaybg, and swaylock.
This commit is contained in:
Drew DeVault 2016-09-05 11:36:48 -04:00
parent 61184e3208
commit b2226ac655
9 changed files with 96 additions and 61 deletions

View file

@ -18,6 +18,8 @@ static void display_handle_mode(void *data, struct wl_output *wl_output,
state->flags = flags;
state->width = width;
state->height = height;
sway_log(L_DEBUG, "Got mode %dx%x:0x%X for output %p",
width, height, flags, data);
}
}
@ -34,6 +36,7 @@ static void display_handle_done(void *data, struct wl_output *wl_output) {
static void display_handle_scale(void *data, struct wl_output *wl_output, int32_t factor) {
struct output_state *state = data;
state->scale = factor;
sway_log(L_DEBUG, "Got scale factor %d for output %p", factor, data);
}
static const struct wl_output_listener output_listener = {