summaryrefslogtreecommitdiffstats
path: root/sway/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sway/container.c b/sway/container.c
index 67aa6851..c922bac3 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -102,7 +102,8 @@ static void update_root_geometry() {
102// New containers 102// New containers
103 103
104swayc_t *new_output(wlc_handle handle) { 104swayc_t *new_output(wlc_handle handle) {
105 const struct wlc_size *size = wlc_output_get_resolution(handle); 105 struct wlc_size size;
106 output_get_scaled_size(handle, &size);
106 const char *name = wlc_output_get_name(handle); 107 const char *name = wlc_output_get_name(handle);
107 // Find current outputs to see if this already exists 108 // Find current outputs to see if this already exists
108 { 109 {
@@ -148,8 +149,8 @@ swayc_t *new_output(wlc_handle handle) {
148 swayc_t *output = new_swayc(C_OUTPUT); 149 swayc_t *output = new_swayc(C_OUTPUT);
149 output->handle = handle; 150 output->handle = handle;
150 output->name = name ? strdup(name) : NULL; 151 output->name = name ? strdup(name) : NULL;
151 output->width = size->w; 152 output->width = size.w;
152 output->height = size->h; 153 output->height = size.h;
153 output->unmanaged = create_list(); 154 output->unmanaged = create_list();
154 output->bg_pid = 0; 155 output->bg_pid = 0;
155 156