diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-16 13:07:43 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-16 13:07:43 -0400 |
commit | e64e61779e70c80875e3a8e00ad041265f50787d (patch) | |
tree | e7c21763fde8e7400406d7d2e9db956817e821aa | |
parent | a092df52da9f73bd4d019597209495fcb2debbd2 (diff) | |
download | sway-e64e61779e70c80875e3a8e00ad041265f50787d.tar.xz |
Set C_OUTPUT name to name from wlc
-rw-r--r-- | sway/container.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c index 98941b2c..1f9b250f 100644 --- a/sway/container.c +++ b/sway/container.c @@ -45,11 +45,15 @@ static void add_output_widths(swayc_t *container, void *_width) { swayc_t *new_output(wlc_handle handle) { sway_log(L_DEBUG, "Added output %d", handle); const struct wlc_size* size = wlc_output_get_resolution(handle); + const char *name = wlc_output_get_name(handle); swayc_t *output = new_swayc(C_OUTPUT); output->width = size->w; output->height = size->h; output->handle = handle; + if (name) { + output->name = strdup(name); + } add_child(&root_container, output); |