diff options
author | Isaac Freund <ifreund@ifreund.xyz> | 2021-01-02 20:06:46 +0100 |
---|---|---|
committer | Ilia Bozhinov <ammen99@gmail.com> | 2021-01-05 12:22:20 +0100 |
commit | abcab0331fc0537de83da3e5bff4a6787b3786a8 (patch) | |
tree | ebf1422e4dc0ec8bc94acff2b89e735816d56f55 | |
parent | e8d56ca415f6214681daa65c0da505cd2d0bdc75 (diff) |
toplevel-management: ignore inert seats
-rw-r--r-- | types/wlr_foreign_toplevel_management_v1.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/types/wlr_foreign_toplevel_management_v1.c b/types/wlr_foreign_toplevel_management_v1.c index 154f790c..558e7997 100644 --- a/types/wlr_foreign_toplevel_management_v1.c +++ b/types/wlr_foreign_toplevel_management_v1.c @@ -107,8 +107,11 @@ static void foreign_toplevel_handle_activate(struct wl_client *client, if (!toplevel) { return; } - struct wlr_seat_client *seat_client = wlr_seat_client_from_resource(seat); + if (!seat_client) { + return; + } + struct wlr_foreign_toplevel_handle_v1_activated_event event = { .toplevel = toplevel, .seat = seat_client->seat, |