aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorD.B <thejan.2009@gmail.com>2016-10-11 09:11:56 +0200
committerD.B <thejan.2009@gmail.com>2016-10-11 09:16:59 +0200
commit166c2a3687d2819184457490132dd0c109238873 (patch)
tree13d40041fc41a2ba8d4f03ce403395334f8397d4 /sway/handlers.c
parent571321a1d84a1eb2867fbdc39f7f828aa2c64a01 (diff)
generalize wrapping views under workspaces
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c11
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) {
wlc_view_get_geometry(handle)->size.h, wlc_view_get_title(handle),
wlc_view_get_class(handle), wlc_view_get_app_id(handle));
- bool encapsulate_view = false;
// TODO properly figure out how each window should be handled.
switch (wlc_view_get_type(handle)) {
// regular view created regularly
@@ -342,12 +341,6 @@ static bool handle_view_created(wlc_handle handle) {
if (parent) {
newview = new_floating_view(handle);
} else {
- if (focused->type == C_WORKSPACE &&
- /* focused->children->length == 0 && */
- (focused->workspace_layout == L_TABBED || focused->workspace_layout == L_STACKED)) {
- // will wrap the view in a container later on
- encapsulate_view = true;
- }
newview = new_view(focused, handle);
wlc_view_set_state(handle, WLC_BIT_MAXIMIZED, true);
}
@@ -381,10 +374,6 @@ static bool handle_view_created(wlc_handle handle) {
suspend_workspace_cleanup = true;
if (newview) {
- // first view on tabbed/stacked workspace was created, wrap it in a container
- if (encapsulate_view && newview->parent) {
- new_container(newview, newview->parent->workspace_layout);
- }
ipc_event_window(newview, "new");
set_focused_container(newview);
wlc_view_set_mask(handle, VISIBLE);