aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-07-29 07:35:43 -0400
committerDrew DeVault <sir@cmpwn.com>2016-07-29 07:35:43 -0400
commit966127222439620233c27ab835062f6cc69e23ea (patch)
tree7e233c68e7063b7c0c7857a73111e95141fb5b44 /sway/container.c
parentddb44984c5f3aede3eea45403659e5614a7b752f (diff)
parentcad085ed9ddf57ade3785cabfaea9fb49613d4a3 (diff)
Merge remote-tracking branch 'origin/hidpi'
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() {
// New containers
swayc_t *new_output(wlc_handle handle) {
- const struct wlc_size *size = wlc_output_get_resolution(handle);
+ struct wlc_size size;
+ 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;