Skip to content

Commit

Permalink
pin-view: send [un]map signals when [un]pinning to skip taskbar while…
Browse files Browse the repository at this point in the history
… pinned (#250)
  • Loading branch information
soreau authored Aug 15, 2024
1 parent 71118fb commit 1075307
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pin-view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ class wayfire_pin_view : public wf::plugin_interface_t
bool resize = data["resize"];
auto og = output->get_relative_geometry();
int x = 0, y = 0;
wf::view_unmapped_signal unmap_signal;
unmap_signal.view = view;
wf::get_core().emit(&unmap_signal);
if (data.contains("x"))
{
x = data["x"].get<int>();
Expand Down Expand Up @@ -194,6 +197,9 @@ class wayfire_pin_view : public wf::plugin_interface_t

view->release_data<pin_view_data>();
on_workspace_changed.disconnect();
wf::view_mapped_signal map_signal;
map_signal.view = view;
wf::get_core().emit(&map_signal);
return true;
}

Expand Down

0 comments on commit 1075307

Please sign in to comment.