diff options
author | Mykyta Holubakha <hilobakho@gmail.com> | 2017-01-19 03:14:59 +0200 |
---|---|---|
committer | Mykyta Holubakha <hilobakho@gmail.com> | 2017-01-19 03:14:59 +0200 |
commit | e714fbcbec43fa87e1b969e5fcdc0abf298ade44 (patch) | |
tree | cc10e0f32f2e83c3b14180b1fd44b6f0a114bf92 /sway/container.c | |
parent | Merge pull request #1051 from ametisf/master (diff) | |
download | sway-e714fbcbec43fa87e1b969e5fcdc0abf298ade44.tar.gz sway-e714fbcbec43fa87e1b969e5fcdc0abf298ade44.tar.zst sway-e714fbcbec43fa87e1b969e5fcdc0abf298ade44.zip |
Add window instance support
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c index cf7d7dda..11dcdb7f 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -70,6 +70,9 @@ static void free_swayc(swayc_t *cont) { | |||
70 | if (cont->class) { | 70 | if (cont->class) { |
71 | free(cont->class); | 71 | free(cont->class); |
72 | } | 72 | } |
73 | if (cont->instance) { | ||
74 | free(cont->instance); | ||
75 | } | ||
73 | if (cont->app_id) { | 76 | if (cont->app_id) { |
74 | free(cont->app_id); | 77 | free(cont->app_id); |
75 | } | 78 | } |
@@ -295,6 +298,8 @@ swayc_t *new_view(swayc_t *sibling, wlc_handle handle) { | |||
295 | view->name = title ? strdup(title) : NULL; | 298 | view->name = title ? strdup(title) : NULL; |
296 | const char *class = wlc_view_get_class(handle); | 299 | const char *class = wlc_view_get_class(handle); |
297 | view->class = class ? strdup(class) : NULL; | 300 | view->class = class ? strdup(class) : NULL; |
301 | const char *instance = wlc_view_get_instance(handle); | ||
302 | view->instance = instance ? strdup(instance) : NULL; | ||
298 | const char *app_id = wlc_view_get_app_id(handle); | 303 | const char *app_id = wlc_view_get_app_id(handle); |
299 | view->app_id = app_id ? strdup(app_id) : NULL; | 304 | view->app_id = app_id ? strdup(app_id) : NULL; |
300 | view->visible = true; | 305 | view->visible = true; |
@@ -333,6 +338,8 @@ swayc_t *new_floating_view(wlc_handle handle) { | |||
333 | view->name = title ? strdup(title) : NULL; | 338 | view->name = title ? strdup(title) : NULL; |
334 | const char *class = wlc_view_get_class(handle); | 339 | const char *class = wlc_view_get_class(handle); |
335 | view->class = class ? strdup(class) : NULL; | 340 | view->class = class ? strdup(class) : NULL; |
341 | const char *instance = wlc_view_get_instance(handle); | ||
342 | view->instance = instance ? strdup(instance) : NULL; | ||
336 | const char *app_id = wlc_view_get_app_id(handle); | 343 | const char *app_id = wlc_view_get_app_id(handle); |
337 | view->app_id = app_id ? strdup(app_id) : NULL; | 344 | view->app_id = app_id ? strdup(app_id) : NULL; |
338 | view->visible = true; | 345 | view->visible = true; |