[NetworkManager-openconnect/master: 7/10] SAML: set WEBKIT_DISABLE_COMPOSITING_MODE




commit d5f3a343fa88eb7ecbd44d706c786245ef1f26d1
Author: Luca Boccassi <luca boccassi microsoft com>
Date:   Tue Oct 12 20:44:41 2021 +0100

    SAML: set WEBKIT_DISABLE_COMPOSITING_MODE
    
    On some machines the login box is incredibly laggy with compositing
    enabled. We are not doing fancy graphics, so disable it, unless
    the user has forced it on manually.

 auth-dialog/main.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 00d6741..aa07423 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -775,6 +775,8 @@ static int open_webview(struct openconnect_info *vpninfo, const char *login_uri,
 {
        struct WebviewContext ctx;
 
+       // Webview is incredibly slow with compositing enabled
+       g_setenv ("WEBKIT_DISABLE_COMPOSITING_MODE", "1", FALSE);
        ctx.vpninfo = vpninfo;
        ctx.privdata = privdata;
        g_mutex_init(&ctx.mutex);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]