mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-11 05:34:21 -04:00
fix: crash when click waybar overview button
This commit is contained in:
parent
df46194b5f
commit
e0bc7fb5e4
1 changed files with 10 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue