diff --git a/src/app/qml/Main.qml b/src/app/qml/Main.qml index c2cd7b98b..1f286070c 100644 --- a/src/app/qml/Main.qml +++ b/src/app/qml/Main.qml @@ -100,7 +100,8 @@ Kirigami.ApplicationWindow { function onCurrentRoomChanged() { if (RoomManager.currentRoom && root.pageStack.depth <= 1 && root.initialized && Kirigami.Settings.isMobile) { - let roomPage = root.pageStack.layers.push(Qt.createComponent('org.kde.neochat', 'RoomPage')); + let roomPage = pageStack.push(Qt.createComponent('org.kde.neochat', 'RoomPage')); + roomPage.forceActiveFocus(); roomPage.backRequested.connect(event => { RoomManager.clearCurrentRoom(); }); diff --git a/src/app/qml/RoomPage.qml b/src/app/qml/RoomPage.qml index 22eda1d4b..2a00559ee 100644 --- a/src/app/qml/RoomPage.qml +++ b/src/app/qml/RoomPage.qml @@ -252,12 +252,6 @@ Kirigami.Page { } } - background: Rectangle { - Kirigami.Theme.colorSet: Kirigami.Theme.View - Kirigami.Theme.inherit: false - color: NeoChatConfig.compactLayout ? Kirigami.Theme.backgroundColor : "transparent" - } - footer: Loader { id: chatBarLoader height: active ? (item as ChatBar).implicitHeight : 0