Skip to content

Commit

Permalink
xwayland: do not honor request_activate() if the view is not mapped y…
Browse files Browse the repository at this point in the history
…et (#2002)

We can't really give focus to the view anyway.
  • Loading branch information
ammen99 authored Nov 6, 2023
1 parent 97bc500 commit 9bed909
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 9bed909

Please sign in to comment.