]> Skullheadx's Git Forge - surf.git/commitdiff
Fix dark mode parameter application
authorQuentin Rameau <quinq@fifth.space>
Sun, 10 Apr 2022 16:44:28 +0000 (18:44 +0200)
committerQuentin Rameau <quinq@fifth.space>
Sun, 10 Apr 2022 16:50:02 +0000 (18:50 +0200)
surf.c

diff --git a/surf.c b/surf.c
index 696b3a4dac9123392cc3e37867665066a5352573..010e5e2c45434c3547fbcc1d8c5aaa9194dbcbcd 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -262,7 +262,6 @@ char *argv0;
 static ParamName loadtransient[] = {
        Certificate,
        CookiePolicies,
-       DarkMode,
        DiskCache,
        DNSPrefetch,
        FileURLsCrossAccess,
@@ -278,6 +277,7 @@ static ParamName loadcommitted[] = {
 //     AccessMicrophone,
 //     AccessWebcam,
        CaretBrowsing,
+       DarkMode,
        DefaultCharset,
        FontSize,
        FrameFlattening,
@@ -1231,6 +1231,8 @@ newview(Client *c, WebKitWebView *rv)
        c->context = context;
        c->settings = settings;
 
+       setparameter(c, 0, DarkMode, &curconfig[DarkMode].val);
+
        return v;
 }