Skip to content

Commit

Permalink
fixed review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
hazelwiss committed Dec 28, 2023
1 parent 94c3df2 commit a653364
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/focus-change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,13 @@ class wayfire_focus_change_t : public wf::plugin_interface_t
if (new_focus != nullptr)
{
auto op = new_focus->get_output();
const auto ws = op->wset()->get_view_main_workspace(new_focus);
op->wset()->set_workspace(ws);
wf::get_core().seat->focus_output(op);
if (op != nullptr)
{
const auto ws = op->wset()->get_view_main_workspace(new_focus);
op->wset()->request_workspace(ws);
wf::get_core().seat->focus_output(op);
}

wf::get_core().seat->focus_view(new_focus->self());
if (raise_on_change.value())
{
Expand Down

0 comments on commit a653364

Please sign in to comment.