Skip to content

Commit

Permalink
background-view: Disconnect pre-mapped handler after setting up view
Browse files Browse the repository at this point in the history
If we don't do this and the view is killed or dies, new views might be matched
and set unintentionally as a background view.
  • Loading branch information
soreau committed Oct 8, 2023
1 parent 2fbfb04 commit 61e2fcd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/background-view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ class wayfire_background_view : public wf::plugin_interface_t

// Remove any idle inhibitors which were already set
remove_idle_inhibitors();
on_view_pre_map.disconnect();
}

wf::signal::connection_t<wf::view_pre_map_signal> on_view_pre_map = [=] (wf::view_pre_map_signal *ev)
Expand Down

0 comments on commit 61e2fcd

Please sign in to comment.