Skip to content

Commit

Permalink
im-v1: handle when nothing is focused (e.g. switched to an empty work…
Browse files Browse the repository at this point in the history
…space)
  • Loading branch information
lilydjwg committed Mar 6, 2024
1 parent 682b812 commit 2a1a9da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/protocols/input-method-v1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,12 @@ class wayfire_input_method_v1 : public wf::plugin_interface_t, public wf::text_i
im->set_focus_surface(last_focus_surface);
}
}
} else
{
for (auto& [_, im] : im_text_inputs)
{
im->set_focus_surface(nullptr);
}
}
};

Expand Down

0 comments on commit 2a1a9da

Please sign in to comment.