mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Initial pass on HiDPI support
This commit is contained in:
parent
a5af3bce98
commit
6ea02f3064
6 changed files with 34 additions and 14 deletions
|
|
@ -102,7 +102,8 @@ static void update_root_geometry() {
|
|||
// New containers
|
||||
|
||||
swayc_t *new_output(wlc_handle handle) {
|
||||
const struct wlc_size *size = wlc_output_get_resolution(handle);
|
||||
struct wlc_size size;
|
||||
wlc_output_get_scaled_size(handle, &size);
|
||||
const char *name = wlc_output_get_name(handle);
|
||||
// Find current outputs to see if this already exists
|
||||
{
|
||||
|
|
@ -148,8 +149,8 @@ swayc_t *new_output(wlc_handle handle) {
|
|||
swayc_t *output = new_swayc(C_OUTPUT);
|
||||
output->handle = handle;
|
||||
output->name = name ? strdup(name) : NULL;
|
||||
output->width = size->w;
|
||||
output->height = size->h;
|
||||
output->width = size.w;
|
||||
output->height = size.h;
|
||||
output->unmanaged = create_list();
|
||||
output->bg_pid = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue