aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-01-02 20:06:46 +0100
committerIlia Bozhinov <ammen99@gmail.com>2021-01-05 12:22:20 +0100
commitabcab0331fc0537de83da3e5bff4a6787b3786a8 (patch)
treeebf1422e4dc0ec8bc94acff2b89e735816d56f55
parente8d56ca415f6214681daa65c0da505cd2d0bdc75 (diff)
toplevel-management: ignore inert seats
-rw-r--r--types/wlr_foreign_toplevel_management_v1.c5
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,