1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-21 10:50:30 +03:00

whitelist krunner and yakuake windows

This commit is contained in:
Michail Vourlakos 2020-03-26 14:16:04 +02:00
parent 1e9785dc0b
commit 0d29114664
2 changed files with 10 additions and 2 deletions

View File

@ -794,7 +794,11 @@ bool WaylandInterface::isAcceptableWindow(const KWayland::Client::PlasmaWindow *
bool hasSkipSwitcher = w->skipSwitcher();
bool isSkipped = hasSkipTaskbar && hasSkipSwitcher;
if (w->appId() == QLatin1String("org.kde.plasmashell")) {
if (isSkipped
&& ((w->appId() == QLatin1String("yakuake")
|| (w->appId() == QLatin1String("krunner"))) )) {
registerWhitelistedWindow(w->internalId());
} else if (w->appId() == QLatin1String("org.kde.plasmashell")) {
if (isSkipped && isSidepanel(w)) {
registerWhitelistedWindow(w->internalId());
return true;

View File

@ -671,7 +671,11 @@ bool XWindowInterface::isAcceptableWindow(WindowId wid)
bool hasSkipPager = info.hasState(NET::SkipPager);
bool isSkipped = hasSkipTaskbar && hasSkipPager;
if (winClass == QLatin1String("plasmashell")) {
if (isSkipped
&& ((winClass == QLatin1String("yakuake")
|| (winClass == QLatin1String("krunner"))) )) {
registerWhitelistedWindow(wid);
} else if (winClass == QLatin1String("plasmashell")) {
if (isSkipped && isSidepanel(info.geometry())) {
registerWhitelistedWindow(wid);
return true;