From 01fd5e6b61828ec07f5be710523f0a6f0bb20a1a Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 31 Aug 2022 20:44:21 +0200 Subject: Unset the transient parent on separate chat windows relates to #1168 --- resources/qml/RoomList.qml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'resources/qml/RoomList.qml') 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 -- cgit 1.5.1