Initial testing on hidpi clients

This commit is contained in:
Drew DeVault 2016-09-05 10:32:21 -04:00
parent 0913eff915
commit 61184e3208
4 changed files with 6 additions and 2 deletions

View file

@ -32,7 +32,8 @@ 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) {
// this space intentionally left blank
struct output_state *state = data;
state->scale = factor;
}
static const struct wl_output_listener output_listener = {
@ -220,6 +221,7 @@ static void registry_global(void *data, struct wl_registry *registry,
struct wl_output *output = wl_registry_bind(registry, name, &wl_output_interface, version);
struct output_state *ostate = malloc(sizeof(struct output_state));
ostate->output = output;
ostate->scale = 1;
wl_output_add_listener(output, &output_listener, ostate);
list_add(reg->outputs, ostate);
} else if (strcmp(interface, desktop_shell_interface.name) == 0) {