Skip to content

Commit

Permalink
wm-actions: fix toggle always on top with no focused views (#1989)
Browse files Browse the repository at this point in the history
Fixes #1961
  • Loading branch information
ammen99 authored Oct 29, 2023
1 parent e77780d commit 481e2d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions plugins/wm-actions/wm-actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,13 @@ class wayfire_wm_actions_output_t : public wf::per_output_plugin_instance_t
wf::activator_callback on_toggle_above = [=] (auto ev) -> bool
{
auto view = choose_view(ev.source);

return set_keep_above_state(view, !view->has_data("wm-actions-above"));
if (view)
{
return set_keep_above_state(view, !view->has_data("wm-actions-above"));
} else
{
return false;
}
};

wf::activator_callback on_minimize = [=] (auto ev) -> bool
Expand Down

0 comments on commit 481e2d2

Please sign in to comment.