diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-16 21:29:52 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-16 21:29:52 -0400 |
commit | 0de5b535d0d818c1e47bed7111ab88a1c154886a (patch) | |
tree | 33d6e363beb1f5f1d1e3ad805586397402621635 /sway/container.c | |
parent | cf6df324a8a12aef4573628d9c5de84119933d5a (diff) | |
parent | 498cf268f712e0bc8d00cf9ef7e3886129904c67 (diff) |
Merge pull request #51 from taiyu-len/master
unmanaged views handled better
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sway/container.c b/sway/container.c index 3158b8b0..89958a4f 100644 --- a/sway/container.c +++ b/sway/container.c @@ -125,18 +125,10 @@ swayc_t *new_container(swayc_t *child, enum swayc_layouts layout) { } swayc_t *new_view(swayc_t *sibling, wlc_handle handle) { - const uint32_t type = wlc_view_get_type(handle); const char *title = wlc_view_get_title(handle); - /* Skip if unmanaged window */ - if ((type & WLC_BIT_OVERRIDE_REDIRECT) || (type & WLC_BIT_UNMANAGED) || - (type & WLC_BIT_POPUP) || (type & WLC_BIT_MODAL) || (type & WLC_BIT_SPLASH)) { - sway_log(L_DEBUG, "Leaving view %d:%s alone (unmanaged)", handle, title); - return NULL; - } - swayc_t *view = new_swayc(C_VIEW); - sway_log(L_DEBUG, "Adding new view %d:%s:%d to container %p %d", - handle, title, type, sibling, sibling?sibling->type:0); + sway_log(L_DEBUG, "Adding new view %d:%s to container %p %d", + handle, title, sibling, sibling?sibling->type:0); //Setup values view->handle = handle; view->name = strdup(title); |