Skip to content

Commit

Permalink
add support of hidden flag
Browse files Browse the repository at this point in the history
  • Loading branch information
arcan1s committed May 17, 2023
1 parent 73f1617 commit 1e69aa9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/desktop-panel/plugin/dpadds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,9 @@ DPAdds::DesktopWindowsInfo DPAdds::getInfoByDesktop(const int _desktop) const
// don't think it is possible to put desktop to desktop
info.desktopsData.append(data);
} else {
auto isHidden = model.data(TaskManager::AbstractTasksModel::IsHidden).toBool();
auto isMinimized = model.data(TaskManager::AbstractTasksModel::IsMinimized).toBool();
if (isMinimized || !desktops.contains(desktop))
if (isHidden || isMinimized || !desktops.contains(desktop))
continue;
info.windowsData.append(data);
}
Expand Down

0 comments on commit 1e69aa9

Please sign in to comment.