]> Skullheadx's Git Forge - surf.git/commitdiff
Do not reload page when toggling dark mode
authorQuentin Rameau <quinq@fifth.space>
Wed, 4 May 2022 01:30:30 +0000 (03:30 +0200)
committerQuentin Rameau <quinq@fifth.space>
Wed, 4 May 2022 01:31:58 +0000 (03:31 +0200)
This change had actually been applied in previous commit d3ee652
by mistake.

surf.1
surf.c

diff --git a/surf.1 b/surf.1
index 5d69a079fb9966e999fd9c68232afaf9fffc9a0e..fa18bc82f3610e73dcb751a9ae653a46bc57fd0e 100644 (file)
--- a/surf.1
+++ b/surf.1
@@ -209,7 +209,7 @@ Toggle scrollbars. This will reload the page.
 Toggle caret browsing. This will reload the page.
 .TP
 .B Ctrl\-Shift\-d
-Toggle dark mode. This will reload the page.
+Toggle dark mode.
 .TP
 .B Ctrl\-Shift\-i
 Toggle auto-loading of images. This will reload the page.
diff --git a/surf.c b/surf.c
index 010e5e2c45434c3547fbcc1d8c5aaa9194dbcbcd..474c01ba572cdacf94abba11d168593611a10bf8 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -778,7 +778,6 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
                g_object_set(gtk_settings_get_default(),
                             "gtk-application-prefer-dark-theme", a->i, NULL);
                return;
-               break;
        case DiskCache:
                webkit_web_context_set_cache_model(c->context, a->i ?
                    WEBKIT_CACHE_MODEL_WEB_BROWSER :