project: not use global var

This commit is contained in:
DreamMaoMao 2026-02-04 20:13:44 +08:00
parent 0b35b00f91
commit 21a492e961
17 changed files with 1885 additions and 1599 deletions

View file

@ -180,8 +180,8 @@ void refresh_monitors_workspaces_status(Monitor *m) {
}
void workspaces_init() {
/* Create the global workspace manager with activation capability */
ext_manager = wlr_ext_workspace_manager_v1_create(dpy, 1);
/* Create the global workspace manager with server.activation capability */
ext_manager = wlr_ext_workspace_manager_v1_create(server.dpy, 1);
/* Initialize the global workspaces list */
wl_list_init(&workspaces);
}