Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into fullscreen-apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Timidger committed Jan 8, 2017
2 parents cfab65f + 31929e3 commit 20efd2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layout/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ impl Tree {
return Err(TreeError::NoActiveContainer)
}
view.set_mask(output.get_mask());
if view.get_type() != ViewType::empty() {
let has_parent = view.get_parent() != WlcView::root();
if view.get_type() != ViewType::empty() || has_parent {
try!(tree.add_floating_view(view));
} else {
try!(tree.add_view(view));
Expand Down

0 comments on commit 20efd2a

Please sign in to comment.