fix: crash when click waybar overview button
This commit is contained in:
@@ -47,6 +47,11 @@ static void handle_ext_workspace_activate(struct wl_listener *listener,
|
|||||||
void *data) {
|
void *data) {
|
||||||
struct workspace *workspace =
|
struct workspace *workspace =
|
||||||
wl_container_of(listener, workspace, activate);
|
wl_container_of(listener, workspace, activate);
|
||||||
|
|
||||||
|
if (workspace->m->isoverview) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
goto_workspace(workspace);
|
goto_workspace(workspace);
|
||||||
wlr_log(WLR_INFO, "ext activating workspace %d", workspace->tag);
|
wlr_log(WLR_INFO, "ext activating workspace %d", workspace->tag);
|
||||||
}
|
}
|
||||||
@@ -55,6 +60,11 @@ static void handle_ext_workspace_deactivate(struct wl_listener *listener,
|
|||||||
void *data) {
|
void *data) {
|
||||||
struct workspace *workspace =
|
struct workspace *workspace =
|
||||||
wl_container_of(listener, workspace, deactivate);
|
wl_container_of(listener, workspace, deactivate);
|
||||||
|
|
||||||
|
if (workspace->m->isoverview) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
toggle_workspace(workspace);
|
toggle_workspace(workspace);
|
||||||
wlr_log(WLR_INFO, "ext deactivating workspace %d", workspace->tag);
|
wlr_log(WLR_INFO, "ext deactivating workspace %d", workspace->tag);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user