From c3d7b6ddc1c2a61dc0a2cb209484279e9ade456d Mon Sep 17 00:00:00 2001 From: ann0see Date: Mon, 9 Nov 2026 19:42:37 +0100 Subject: [PATCH] Show the chat window full screen on iOS The chat dialog keeps the size from its .ui file (435x405), which is wider than a phone screen in portrait, and Qt's iOS plugin does not bring a top level window to the front when it is shown for the first time. Show it maximized and raise it, like the connect dialog does since #3343. Skip showNormal() on iOS, as that clears the maximized state again. --- src/clientdlg.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/clientdlg.cpp b/src/clientdlg.cpp index 2c7c35f02c..496cede38b 100644 --- a/src/clientdlg.cpp +++ b/src/clientdlg.cpp @@ -1018,10 +1018,18 @@ void CClientDlg::ShowChatWindow ( const bool bForceRaise ) ChatDlg.show(); ChatDlg.setWindowTitle ( MakeClientNameTitle ( tr ( "Chat" ), pClient->strClientName ) ); +#if defined( Q_OS_IOS ) + // iOS has no window manager. Thus we need to force full screen and raise + ChatDlg.showMaximized(); + ChatDlg.raise(); +#endif + if ( bForceRaise ) { // make sure dialog is upfront and has focus +#if !defined( Q_OS_IOS ) ChatDlg.showNormal(); +#endif ChatDlg.raise(); ChatDlg.activateWindow(); }