From 4c1260a924df1c5abf523517684dcaf867bfa3bf Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Tue, 27 Jan 2026 01:09:47 +0900 Subject: [PATCH] [fixup] update to use union --- src/workspaces.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/workspaces.c b/src/workspaces.c index fb338036..faae9582 100644 --- a/src/workspaces.c +++ b/src/workspaces.c @@ -218,9 +218,7 @@ handle_ext_workspace_commit(struct wl_listener *listener, void *data) struct wlr_ext_workspace_v1_request *req; wl_list_for_each(req, event->requests, link) { if (req->type == WLR_EXT_WORKSPACE_V1_REQUEST_ACTIVATE) { - struct wlr_ext_workspace_v1_request_activate *activate_req = - (struct wlr_ext_workspace_v1_request_activate *)req; - struct workspace *workspace = activate_req->workspace->data; + struct workspace *workspace = req->activate.workspace->data; workspaces_switch_to(workspace, /* update_focus */ true); wlr_log(WLR_INFO, "ext activating workspace %s", workspace->name);