aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-06-05 00:04:46 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-06-05 00:24:46 +0200
commit7a40ac370d9ebebaf53007e42619ff6dd0cd0244 (patch)
treea66b35939d53543bcb972165a4e98cdfe4ce0c4e
parenta63fb461ba495d258c2acc39735d02da88895a89 (diff)
downloadriver-7a40ac370d9ebebaf53007e42619ff6dd0cd0244.tar.gz
river-7a40ac370d9ebebaf53007e42619ff6dd0cd0244.tar.xz
river-status: use correct resource and fix crash
-rw-r--r--river/StatusManager.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/river/StatusManager.zig b/river/StatusManager.zig
index 3ea4207..bc5bc99 100644
--- a/river/StatusManager.zig
+++ b/river/StatusManager.zig
@@ -120,7 +120,7 @@ fn getRiverSeatStatus(
) callconv(.C) void {
const self = @ptrCast(*Self, @alignCast(@alignOf(*Self), c.wl_resource_get_user_data(wl_resource)));
// This can be null if the seat is inert, in which case we ignore the request
- const wlr_seat_client = c.wlr_seat_client_from_resource(wl_resource) orelse return;
+ const wlr_seat_client = c.wlr_seat_client_from_resource(seat_wl_resource) orelse return;
const seat = @ptrCast(*Seat, @alignCast(@alignOf(*Seat), wlr_seat_client.*.seat.*.data));
const allocator = self.server.allocator;