Skip to content

Commit

Permalink
Ignore everything that doesn't have a decoration (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
matinlotfali authored Jun 18, 2023
1 parent 4d2daf5 commit 3d815fc
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions shapecorners.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,10 @@ ShapeCornersEffect::~ShapeCornersEffect() = default;
void
ShapeCornersEffect::windowAdded(KWin::EffectWindow *w)
{
if (m_managed.contains(w)
|| w->isDesktop()
|| w->isPopupMenu()
|| w->isDropdownMenu()
|| w->isTooltip()
|| w->isMenu()
|| w->isOnScreenDisplay()
|| w->isDock())
if (m_managed.contains(w))
return;
qDebug() << w->windowRole() << w->windowType() << w->windowClass();
if (!w->hasDecoration()
&& (w->windowClass().contains("plasma", Qt::CaseInsensitive)
|| w->windowClass().contains("krunner", Qt::CaseInsensitive)
|| w->windowClass().contains("latte-dock", Qt::CaseInsensitive)
|| w->windowClass().contains("telegram", Qt::CaseInsensitive)))
if (!w->hasDecoration())
return;
m_managed.insert(w);

Expand Down

0 comments on commit 3d815fc

Please sign in to comment.