Skip to content

Commit

Permalink
xwayland: do not honor request_activate() if the view is not mapped yet
Browse files Browse the repository at this point in the history
We can't really give focus to the view anyway.
  • Loading branch information
ammen99 committed Nov 3, 2023
1 parent 63b51eb commit 2401ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/xwayland/xwayland-toplevel-view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class wayfire_xwayland_view : public wf::toplevel_view_interface_t, public wayfi
});
on_request_activate.set_callback([&] (void*)
{
if (!this->activated)
if (!this->activated && this->is_mapped())
{
wf::get_core().default_wm->focus_request({this}, true);
}
Expand Down

0 comments on commit 2401ebd

Please sign in to comment.