Skip to content

Commit

Permalink
viewport-impl: remove wrong check in remove_view_from_layer()
Browse files Browse the repository at this point in the history
  • Loading branch information
ammen99 committed Jun 17, 2018
1 parent c7cd554 commit 71d830e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/single_plugins/viewport-impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,6 @@ viewport_manager::~viewport_manager()

void viewport_manager::remove_from_layer(wayfire_view view, uint32_t layer)
{
if (layer == 0)
return;

auto& layer_container = layers[layer];

auto it = std::remove(layer_container.begin(), layer_container.end(), view);
Expand Down Expand Up @@ -198,7 +195,6 @@ void viewport_manager::add_view_to_layer(wayfire_view view, uint32_t layer)
remove_from_layer(view, layer_index_from_mask(current_layer));

auto& layer_container = layers[layer_index_from_mask(layer)];
log_info("add to layer %d", layer_index_from_mask(layer));
layer_container.push_front(view);
current_layer = layer;
view->damage();
Expand Down

0 comments on commit 71d830e

Please sign in to comment.