From 1075307f89ea3b373df9212dfd72659371759418 Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Thu, 15 Aug 2024 09:56:59 -0600 Subject: [PATCH] pin-view: send [un]map signals when [un]pinning to skip taskbar while pinned (#250) --- src/pin-view.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pin-view.cpp b/src/pin-view.cpp index ca45a50..e1bf19f 100644 --- a/src/pin-view.cpp +++ b/src/pin-view.cpp @@ -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(); @@ -194,6 +197,9 @@ class wayfire_pin_view : public wf::plugin_interface_t view->release_data(); on_workspace_changed.disconnect(); + wf::view_mapped_signal map_signal; + map_signal.view = view; + wf::get_core().emit(&map_signal); return true; }