diff options
| author | Drew DeVault <[email protected]> | 2016-09-05 10:32:21 -0400 | 
|---|---|---|
| committer | Drew DeVault <[email protected]> | 2016-09-05 10:32:21 -0400 | 
| commit | 61184e3208c28b24a84aae5f5f0005311283826d (patch) | |
| tree | c9ce54f75a0c753783a37d6cadda7ad5bb949fe2 /wayland/registry.c | |
| parent | 0913eff9157a4ddc6c6d8b9b4ad23323ed6fcad3 (diff) | |
Initial testing on hidpi clients
Diffstat (limited to 'wayland/registry.c')
| -rw-r--r-- | wayland/registry.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/wayland/registry.c b/wayland/registry.c index 622571f0..2d66b7eb 100644 --- a/wayland/registry.c +++ b/wayland/registry.c @@ -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) {  | 
