diff options
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 75f2d5a6..9a84182a 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -334,7 +334,6 @@ static bool handle_view_created(wlc_handle handle) { | |||
334 | wlc_view_get_geometry(handle)->size.h, wlc_view_get_title(handle), | 334 | wlc_view_get_geometry(handle)->size.h, wlc_view_get_title(handle), |
335 | wlc_view_get_class(handle), wlc_view_get_app_id(handle)); | 335 | wlc_view_get_class(handle), wlc_view_get_app_id(handle)); |
336 | 336 | ||
337 | bool encapsulate_view = false; | ||
338 | // TODO properly figure out how each window should be handled. | 337 | // TODO properly figure out how each window should be handled. |
339 | switch (wlc_view_get_type(handle)) { | 338 | switch (wlc_view_get_type(handle)) { |
340 | // regular view created regularly | 339 | // regular view created regularly |
@@ -342,12 +341,6 @@ static bool handle_view_created(wlc_handle handle) { | |||
342 | if (parent) { | 341 | if (parent) { |
343 | newview = new_floating_view(handle); | 342 | newview = new_floating_view(handle); |
344 | } else { | 343 | } else { |
345 | if (focused->type == C_WORKSPACE && | ||
346 | /* focused->children->length == 0 && */ | ||
347 | (focused->workspace_layout == L_TABBED || focused->workspace_layout == L_STACKED)) { | ||
348 | // will wrap the view in a container later on | ||
349 | encapsulate_view = true; | ||
350 | } | ||
351 | newview = new_view(focused, handle); | 344 | newview = new_view(focused, handle); |
352 | wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true); | 345 | wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true); |
353 | } | 346 | } |
@@ -381,10 +374,6 @@ static bool handle_view_created(wlc_handle handle) { | |||
381 | suspend_workspace_cleanup = true; | 374 | suspend_workspace_cleanup = true; |
382 | 375 | ||
383 | if (newview) { | 376 | if (newview) { |
384 | // first view on tabbed/stacked workspace was created, wrap it in a container | ||
385 | if (encapsulate_view && newview->parent) { | ||
386 | new_container(newview, newview->parent->workspace_layout); | ||
387 | } | ||
388 | ipc_event_window(newview, "new"); | 377 | ipc_event_window(newview, "new"); |
389 | set_focused_container(newview); | 378 | set_focused_container(newview); |
390 | wlc_view_set_mask(handle, VISIBLE); | 379 | wlc_view_set_mask(handle, VISIBLE); |