summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-08-31 20:44:21 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-08-31 20:44:21 +0200
commit01fd5e6b61828ec07f5be710523f0a6f0bb20a1a (patch)
tree2de1ce99f6ed17a858d460749f61b2399ef5c834 /resources
parentFix empty widgets still being shown (diff)
downloadnheko-01fd5e6b61828ec07f5be710523f0a6f0bb20a1a.tar.xz
Unset the transient parent on separate chat windows
relates to #1168
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/RoomList.qml8
1 files changed, 5 insertions, 3 deletions
diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml
index fe61b8d5..d920b97b 100644
--- a/resources/qml/RoomList.qml
+++ b/resources/qml/RoomList.qml
@@ -74,7 +74,10 @@ Page {
                 property var room: null
                 property var roomPreview: null
 
-                Component.onCompleted: MainWindow.addPerRoomWindow(room.roomId || roomPreview.roomid, roomWindowW)
+                Component.onCompleted: {
+                    MainWindow.addPerRoomWindow(room.roomId || roomPreview.roomid, roomWindowW);
+                    Nheko.setTransientParent(roomWindowW, null);
+                }
                 Component.onDestruction: MainWindow.removePerRoomWindow(room.roomId || roomPreview.roomid, roomWindowW)
 
                 height: 650
@@ -84,8 +87,7 @@ Page {
                 palette: Nheko.colors
                 color: Nheko.colors.window
                 title: room.plainRoomName
-                modality: Qt.NonModal
-                flags: Qt.Window | Qt.WindowCloseButtonHint | Qt.WindowTitleHint
+                //flags: Qt.Window | Qt.WindowCloseButtonHint | Qt.WindowTitleHint
 
                 Shortcut {
                     sequence: StandardKey.Cancel