mirror of
https://github.com/labwc/labwc.git
synced 2026-03-23 05:34:52 -04:00
[fixup] update to use union
This commit is contained in:
parent
2802ca7264
commit
4c1260a924
1 changed files with 1 additions and 3 deletions
|
|
@ -218,9 +218,7 @@ handle_ext_workspace_commit(struct wl_listener *listener, void *data)
|
||||||
struct wlr_ext_workspace_v1_request *req;
|
struct wlr_ext_workspace_v1_request *req;
|
||||||
wl_list_for_each(req, event->requests, link) {
|
wl_list_for_each(req, event->requests, link) {
|
||||||
if (req->type == WLR_EXT_WORKSPACE_V1_REQUEST_ACTIVATE) {
|
if (req->type == WLR_EXT_WORKSPACE_V1_REQUEST_ACTIVATE) {
|
||||||
struct wlr_ext_workspace_v1_request_activate *activate_req =
|
struct workspace *workspace = req->activate.workspace->data;
|
||||||
(struct wlr_ext_workspace_v1_request_activate *)req;
|
|
||||||
struct workspace *workspace = activate_req->workspace->data;
|
|
||||||
|
|
||||||
workspaces_switch_to(workspace, /* update_focus */ true);
|
workspaces_switch_to(workspace, /* update_focus */ true);
|
||||||
wlr_log(WLR_INFO, "ext activating workspace %s", workspace->name);
|
wlr_log(WLR_INFO, "ext activating workspace %s", workspace->name);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue