[hackers] [surf/surf-webkit2] Do not reload page when toggling dark mode || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sat, 28 May 2022 22:50:27 +0200 (CEST)

commit 609ea1c8e620ed38e71bf03a46a759c042e76500
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Wed May 4 03:30:30 2022 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Wed May 4 03:31:58 2022 +0200

    Do not reload page when toggling dark mode
    
    This change had actually been applied in previous commit d3ee652
    by mistake.

diff --git a/surf.1 b/surf.1
index 5d69a07..fa18bc8 100644
--- a/surf.1
+++ b/surf.1
_AT_@ -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 010e5e2..474c01b 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -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 :
Received on Sat May 28 2022 - 22:50:27 CEST

This archive was generated by hypermail 2.3.0 : Sat May 28 2022 - 23:00:31 CEST