From b28d5a63d148de808cc2c694ebd780e1aa75b020 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 2 May 2022 12:50:32 +0400 Subject: [PATCH] Handle alert/confirm/prompt with custom dialog on Linux. --- Telegram/SourceFiles/platform/linux/launcher_linux.cpp | 5 +++-- Telegram/lib_webview | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/launcher_linux.cpp b/Telegram/SourceFiles/platform/linux/launcher_linux.cpp index 931cbccd1a..af3bf0d05a 100644 --- a/Telegram/SourceFiles/platform/linux/launcher_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/launcher_linux.cpp @@ -52,8 +52,9 @@ Launcher::Launcher(int argc, char *argv[]) int Launcher::exec() { for (auto i = begin(_arguments), e = end(_arguments); i != e; ++i) { - if (*i == "-webviewhelper" && std::distance(i, e) > 1) { - Webview::WebKit2Gtk::SetSocketPath(*(i + 1)); + if (*i == "-webviewhelper" && std::distance(i, e) > 2) { + Webview::WebKit2Gtk::SetDebug(*(i + 1)); + Webview::WebKit2Gtk::SetSocketPath(*(i + 2)); return Webview::WebKit2Gtk::Exec(); } } diff --git a/Telegram/lib_webview b/Telegram/lib_webview index 318ab62e09..9083cb0f16 160000 --- a/Telegram/lib_webview +++ b/Telegram/lib_webview @@ -1 +1 @@ -Subproject commit 318ab62e091196fbc679586450803a22093e0027 +Subproject commit 9083cb0f16a8a74bcedf2a76b9ddccd773b7b630