1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-10 20:58:18 +03:00

wayland:hide centered black line for alwaysvisible

--drop RasterWindow for always visible ghost windows and
use a fully transparent QQuickView

BUG:444419
FIXED-IN:0.10.4
This commit is contained in:
Michail Vourlakos 2021-11-11 13:57:55 +02:00
parent 11942660fb
commit abc125fe65

View File

@ -20,7 +20,7 @@
#include <QTimer>
#include <QApplication>
#include <QtX11Extras/QX11Info>
#include <QRasterWindow>
#include <QQuickView>
#include <QLatin1String>
// KDE
@ -39,7 +39,7 @@ using namespace KWayland::Client;
namespace Latte {
class Private::GhostWindow : public QRasterWindow
class Private::GhostWindow : public QQuickView
{
Q_OBJECT
@ -53,6 +53,9 @@ public:
| Qt::NoDropShadowWindowHint
| Qt::WindowDoesNotAcceptFocus);
setColor(QColor(Qt::transparent));
setClearBeforeRendering(true);
connect(m_waylandInterface, &WindowSystem::AbstractWindowInterface::latteWindowAdded, this, &GhostWindow::identifyWinId);
setupWaylandIntegration();