Skip to content

Commit

Permalink
Fixed all desktop display and hide windows with skipTaskbar hint
Browse files Browse the repository at this point in the history
  • Loading branch information
zjes committed Jun 14, 2016
1 parent afbbb31 commit 73ac87c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void AppModel::create()
for(WId wid: KWindowSystem::stackingOrder()){
KWindowInfo info(wid, NET::WMVisibleName | NET::WMState | NET::XAWMState | NET::WMWindowType);
NET::WindowType type = info.windowType(NET::AllTypesMask);
if((type == NET::Normal || type == NET::Dialog || type == NET::Unknown) && filter(wid, byDesk, byScreen)){
if(!info.hasState(NET::SkipTaskbar) && (type == NET::Normal || type == NET::Dialog || type == NET::Unknown) && filter(wid, byDesk, byScreen)){
m_list.prepend({wid, info.visibleName(), KWindowSystem::icon(wid, iconSize, iconSize, true)});
}
}
Expand Down Expand Up @@ -51,7 +51,7 @@ bool AppModel::filter(WId window, bool byDesk, bool byScreen) const
{
KWindowInfo info(window, NET::WMDesktop | NET::WMFrameExtents);
if (byDesk){
if (KWindowSystem::currentDesktop() != info.desktop())
if (KWindowSystem::currentDesktop() != info.desktop() && info.desktop() != NET::OnAllDesktops)
return false;
}

Expand Down

0 comments on commit 73ac87c

Please sign in to comment.