mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-26 01:03:51 +03:00
respect window.isMapped in getWindowsOnWorkspace
This commit is contained in:
parent
a8e8729230
commit
f2ab2466ed
@ -500,7 +500,7 @@ void CCompositor::sanityCheckWorkspaces() {
|
|||||||
int CCompositor::getWindowsOnWorkspace(const int& id) {
|
int CCompositor::getWindowsOnWorkspace(const int& id) {
|
||||||
int no = 0;
|
int no = 0;
|
||||||
for (auto& w : m_lWindows) {
|
for (auto& w : m_lWindows) {
|
||||||
if (w.m_iWorkspaceID == id)
|
if (w.m_iWorkspaceID == id && w.m_bIsMapped)
|
||||||
no++;
|
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);
|
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 wl_resource *resource) {
|
||||||
struct wlr_ext_workspace_manager_v1 *manager = manager_from_resource(resource);
|
struct wlr_ext_workspace_manager_v1 *manager = manager_from_resource(resource);
|
||||||
if (!manager) {
|
if (!manager) {
|
||||||
|
Loading…
Reference in New Issue
Block a user