xwayland: validate PID before activating unmanaged surface

Check that an unmanaged surface trying to grab focus is actually a child
of the topmost mapped view.
This commit is contained in:
Johan Malm 2023-04-19 20:40:40 +01:00 committed by Johan Malm
parent 64d62a91b6
commit 5744bba849
3 changed files with 18 additions and 3 deletions

View file

@ -374,6 +374,7 @@ void foreign_toplevel_update_outputs(struct view *view);
void desktop_focus_and_activate_view(struct seat *seat, struct view *view);
void desktop_arrange_all_views(struct server *server);
void desktop_focus_output(struct output *output);
struct view *desktop_topmost_mapped_view(struct server *server);
enum lab_cycle_dir {
LAB_CYCLE_DIR_NONE,