Skip to content

Commit

Permalink
pin-view: Make pinned views not show in scale or switchers
Browse files Browse the repository at this point in the history
  • Loading branch information
soreau committed Aug 15, 2024
1 parent 633aa25 commit 173627c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pin-view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ class wayfire_pin_view : public wf::plugin_interface_t
toplevel->set_geometry(wf::geometry_t{vg.x + (nws.x - cws.x) * og.width,
vg.y + (nws.y - cws.y) * og.height, vg.width, vg.height});
}

output->wset()->remove_view(toplevel);
}
} else
{
Expand All @@ -162,11 +164,11 @@ class wayfire_pin_view : public wf::plugin_interface_t
{
toplevel->set_geometry(og);
}

output->wset()->remove_view(toplevel);
}

view->role = wf::VIEW_ROLE_DESKTOP_ENVIRONMENT;
wf::scene::readd_front(view->get_output()->node_for_layer(layer), view->get_root_node());
return wf::ipc::json_ok();
}

wf::scene::readd_front(output->node_for_layer(layer), view->get_root_node());
Expand Down Expand Up @@ -194,6 +196,7 @@ class wayfire_pin_view : public wf::plugin_interface_t
toplevel->move(vg.x + (pvd->workspace.x - cws.x) * og.width,
vg.y + (pvd->workspace.y - cws.y) * og.height);
toplevel->set_geometry(pvd->geometry);
output->wset()->add_view(toplevel);
}

on_workspace_changed.disconnect();
Expand Down

0 comments on commit 173627c

Please sign in to comment.