Skip to content
Snippets Groups Projects
Commit 7ffae002 authored by Thulinma's avatar Thulinma
Browse files

Make ImageOverlay set appropriate windowRole again

parent 5483c354
No related branches found
No related tags found
No related merge requests found
Pipeline #4305 failed
......@@ -23,6 +23,7 @@ Window {
//visibility: Window.FullScreen
color: Qt.rgba(0.2,0.2,0.2,0.66)
Component.onCompleted: Nheko.setWindowRole(imageOverlay, "imageoverlay")
Shortcut {
sequence: StandardKey.Cancel
......
......@@ -10,6 +10,8 @@
#include <QDesktopServices>
#include <QStyle>
#include <QUrl>
#include <QWindow>
#include <QtPlatformHeaders/QXcbWindowFunctions>
#include "Cache_p.h"
#include "ChatPage.h"
......@@ -178,3 +180,9 @@ Nheko::createRoom(bool space,
emit ChatPage::instance()->createRoom(req);
}
void
Nheko::setWindowRole(QWindow *win, QString newRole) const
{
QXcbWindowFunctions::setWmWindowRole(win, newRole.toUtf8());
}
......@@ -72,6 +72,7 @@ public:
return new AliasEditingModel(room_id_.toStdString());
}
Q_INVOKABLE void setTransientParent(QWindow *window, QWindow *parentWindow) const;
Q_INVOKABLE void setWindowRole(QWindow *win, QString newRole) const;
public slots:
void updateUserProfile();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment