Skip to content

Commit

Permalink
wm-actions: Make show desktop per-workspace
Browse files Browse the repository at this point in the history
This was per-workspace until 92a44dd.
  • Loading branch information
soreau committed Dec 2, 2023
1 parent e2efa57 commit 9dd8506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/wm-actions/wm-actions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class wayfire_wm_actions_output_t : public wf::per_output_plugin_instance_t

if (showdesktop_active)
{
for (auto& view : output->wset()->get_views())
for (auto& view : output->wset()->get_views(wf::WSET_CURRENT_WORKSPACE))
{
if (!view->minimized)
{
Expand Down Expand Up @@ -343,7 +343,7 @@ class wayfire_wm_actions_output_t : public wf::per_output_plugin_instance_t
workspace_changed.disconnect();
view_minimized.disconnect();

auto views = output->wset()->get_views(wf::WSET_SORT_STACKING);
auto views = output->wset()->get_views(wf::WSET_CURRENT_WORKSPACE | wf::WSET_SORT_STACKING);
for (auto& view : wf::reverse(views))
{
if (view->has_data("wm-actions-showdesktop"))
Expand Down

0 comments on commit 9dd8506

Please sign in to comment.