mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 22:05:59 +01:00
respect window.isMapped in getWindowsOnWorkspace
This commit is contained in:
parent
a8e8729230
commit
f2ab2466ed
2 changed files with 2 additions and 2 deletions
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue