[hackers] [surf/surf-webkit2] Fix dark mode parameter application || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sun, 10 Apr 2022 18:50:28 +0200 (CEST)

commit 38cb1632bf9146490b6e006d4a7a54ba251e9283
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sun Apr 10 18:44:28 2022 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Sun Apr 10 18:50:02 2022 +0200

    Fix dark mode parameter application

diff --git a/surf.c b/surf.c
index 696b3a4..010e5e2 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -262,7 +262,6 @@ char *argv0;
 static ParamName loadtransient[] = {
         Certificate,
         CookiePolicies,
- DarkMode,
         DiskCache,
         DNSPrefetch,
         FileURLsCrossAccess,
_AT_@ -278,6 +277,7 @@ static ParamName loadcommitted[] = {
 // AccessMicrophone,
 // AccessWebcam,
         CaretBrowsing,
+ DarkMode,
         DefaultCharset,
         FontSize,
         FrameFlattening,
_AT_@ -1231,6 +1231,8 @@ newview(Client *c, WebKitWebView *rv)
         c->context = context;
         c->settings = settings;
 
+ setparameter(c, 0, DarkMode, &curconfig[DarkMode].val);
+
         return v;
 }
 
Received on Sun Apr 10 2022 - 18:50:28 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 10 2022 - 19:00:38 CEST