mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
ignore ksmserver fullscreen windows
--this way fullscreen windows from ksmserver such as LogOut are totally ignored from Latte for coloring,placement etc.
This commit is contained in:
parent
67d0ca76dd
commit
4df139f34f
@ -772,7 +772,8 @@ void WaylandInterface::updateWindow()
|
||||
if (isPlasmaPanel(pW) || isFullScreenWindow(pW)) {
|
||||
registerPlasmaIgnoredWindow(pW->internalId());
|
||||
}
|
||||
} else if (pW->appId() == QLatin1String("latte-dock")) {
|
||||
} else if ((pW->appId() == QLatin1String("latte-dock"))
|
||||
|| (pW->appId().startsWith(QLatin1String("ksmserver")))) {
|
||||
if (isFullScreenWindow(pW)) {
|
||||
registerPlasmaIgnoredWindow(pW->internalId());
|
||||
}
|
||||
@ -858,7 +859,8 @@ void WaylandInterface::windowCreatedProxy(KWayland::Client::PlasmaWindow *w)
|
||||
registerPlasmaIgnoredWindow(w->internalId());
|
||||
return;
|
||||
}
|
||||
} else if (w->appId() == QLatin1String("latte-dock")) {
|
||||
} else if ((w->appId() == QLatin1String("latte-dock"))
|
||||
|| (w->appId().startsWith(QLatin1String("ksmserver")))) {
|
||||
if (isFullScreenWindow(w)) {
|
||||
registerPlasmaIgnoredWindow(w->internalId());
|
||||
return;
|
||||
|
@ -685,19 +685,20 @@ void XWindowInterface::windowChangedProxy(WId wid, NET::Properties prop1, NET::P
|
||||
{
|
||||
const KWindowInfo info(wid, NET::WMGeometry, NET::WM2WindowClass);
|
||||
|
||||
const auto winClass = info.windowClassName();
|
||||
const auto winClass = QString(info.windowClassName());
|
||||
|
||||
//! ignored windows do not trackd
|
||||
if (m_ignoredWindows.contains(wid) || m_plasmaIgnoredWindows.contains(wid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (winClass == "plasmashell") {
|
||||
if (winClass == QLatin1String("plasmashell")) {
|
||||
if (isPlasmaPanel(info.geometry()) || isFullScreenWindow(wid)) {
|
||||
registerPlasmaIgnoredWindow(wid);
|
||||
return;
|
||||
}
|
||||
} else if (winClass == "latte-dock") {
|
||||
} else if ((winClass == QLatin1String("latte-dock"))
|
||||
|| (winClass == QLatin1String("ksmserver"))) {
|
||||
if (isFullScreenWindow(wid)) {
|
||||
registerPlasmaIgnoredWindow(wid);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user