respect window.isMapped in getWindowsOnWorkspace

This commit is contained in:
vaxerski 2022-04-11 19:56:07 +02:00
parent a8e8729230
commit f2ab2466ed
2 changed files with 2 additions and 2 deletions

View File

@ -500,7 +500,7 @@ void CCompositor::sanityCheckWorkspaces() {
int CCompositor::getWindowsOnWorkspace(const int& id) {
int no = 0;
for (auto& w : m_lWindows) {
if (w.m_iWorkspaceID == id)
if (w.m_iWorkspaceID == id && w.m_bIsMapped)
no++;
}

View File

@ -541,7 +541,7 @@ static struct wlr_ext_workspace_manager_v1 *manager_from_resource(
return (wlr_ext_workspace_manager_v1 *)wl_resource_get_user_data(resource);
}
static void rworkspace_manager_commit(struct wl_client *client,
static void workspace_manager_commit(struct wl_client *client,
struct wl_resource *resource) {
struct wlr_ext_workspace_manager_v1 *manager = manager_from_resource(resource);
if (!manager) {