OSDPretty: Set window title

This commit is contained in:
Jonas Kvinge 2025-01-28 20:24:27 +01:00
parent 440ee43a91
commit 2799e55076

View File

@ -94,12 +94,13 @@ OSDPretty::OSDPretty(const Mode mode, QWidget *parent)
fader_(new QTimeLine(300, this)),
toggle_mode_(false) {
Qt::WindowFlags flags = Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint;
setWindowTitle(u"OSDPretty"_s);
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::X11BypassWindowManagerHint);
setWindowFlags(flags);
setAttribute(Qt::WA_TranslucentBackground, true);
setAttribute(Qt::WA_X11NetWmWindowTypeNotification, true);
setAttribute(Qt::WA_ShowWithoutActivating, true);
ui_->setupUi(this);
#ifdef Q_OS_WIN