mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Merge pull request #914 from Thulinma/imageOverlayRoleQml
Make ImageOverlay set appropriate windowRole again
This commit is contained in:
commit
dedc3cb1f8
3 changed files with 10 additions and 0 deletions
|
@ -23,6 +23,7 @@ Window {
|
||||||
|
|
||||||
//visibility: Window.FullScreen
|
//visibility: Window.FullScreen
|
||||||
color: Qt.rgba(0.2,0.2,0.2,0.66)
|
color: Qt.rgba(0.2,0.2,0.2,0.66)
|
||||||
|
Component.onCompleted: Nheko.setWindowRole(imageOverlay, "imageoverlay")
|
||||||
|
|
||||||
Shortcut {
|
Shortcut {
|
||||||
sequence: StandardKey.Cancel
|
sequence: StandardKey.Cancel
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QStyle>
|
#include <QStyle>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
#include <QWindow>
|
||||||
|
#include <QtPlatformHeaders/QXcbWindowFunctions>
|
||||||
|
|
||||||
#include "Cache_p.h"
|
#include "Cache_p.h"
|
||||||
#include "ChatPage.h"
|
#include "ChatPage.h"
|
||||||
|
@ -178,3 +180,9 @@ Nheko::createRoom(bool space,
|
||||||
|
|
||||||
emit ChatPage::instance()->createRoom(req);
|
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());
|
return new AliasEditingModel(room_id_.toStdString());
|
||||||
}
|
}
|
||||||
Q_INVOKABLE void setTransientParent(QWindow *window, QWindow *parentWindow) const;
|
Q_INVOKABLE void setTransientParent(QWindow *window, QWindow *parentWindow) const;
|
||||||
|
Q_INVOKABLE void setWindowRole(QWindow *win, QString newRole) const;
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void updateUserProfile();
|
void updateUserProfile();
|
||||||
|
|
Loading…
Reference in a new issue