mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
Fix swaybg sizing on hidpi outputs
This commit is contained in:
parent
9b24af1c22
commit
3f83968d30
|
@ -107,7 +107,7 @@ static void update_panel_geometries(wlc_handle output) {
|
||||||
|
|
||||||
static void update_background_geometry(struct background_config *config) {
|
static void update_background_geometry(struct background_config *config) {
|
||||||
struct wlc_geometry geometry = wlc_geometry_zero;
|
struct wlc_geometry geometry = wlc_geometry_zero;
|
||||||
geometry.size = *wlc_output_get_resolution(config->output);
|
output_get_scaled_size(config->output, &geometry.size);
|
||||||
wlc_view_set_geometry(config->handle, 0, &geometry);
|
wlc_view_set_geometry(config->handle, 0, &geometry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue