summaryrefslogtreecommitdiff
path: root/surf/surf.c
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-05-17 18:17:07 +0000
committerstkhan <personal@slickd.xyz>2022-05-17 18:17:07 +0000
commit9261c7a8a339056c3cd58e0b8979a6f25ea764e5 (patch)
treed83fba0566ab0d1c22cac2d84166dcdf4f2d982f /surf/surf.c
parentecf6c90d32260530c8f1805d98ff17c4d4693856 (diff)
dwm launches ncmpcpp with pictures, and surf was rebuild
Diffstat (limited to 'surf/surf.c')
-rw-r--r--surf/surf.c34
1 files changed, 13 insertions, 21 deletions
diff --git a/surf/surf.c b/surf/surf.c
index 552ea44..252a79a 100644
--- a/surf/surf.c
+++ b/surf/surf.c
@@ -56,7 +56,6 @@ typedef enum {
CaretBrowsing,
Certificate,
CookiePolicies,
- DarkMode,
DiskCache,
DefaultCharset,
DNSPrefetch,
@@ -262,7 +261,6 @@ char *argv0;
static ParamName loadtransient[] = {
Certificate,
CookiePolicies,
- DarkMode,
DiskCache,
DNSPrefetch,
FileURLsCrossAccess,
@@ -440,7 +438,18 @@ sighup(int unused)
for (c = clients; c; c = c->next)
reload(c, &a);
}
-
+void
+search(Client *c, const Arg *a)
+{
+ Arg arg;
+ char *url;
+
+ url = g_strdup_printf(searchurl, a->v);
+ arg.v = url;
+ loaduri(c, &arg);
+
+ g_free(url);
+ }
char *
buildfile(const char *path)
{
@@ -601,19 +610,6 @@ loaduri(Client *c, const Arg *a)
g_free(url);
}
-void
-search(Client *c, const Arg *a)
-{
- Arg arg;
- char *url;
-
- url = g_strdup_printf(searchurl, a->v);
- arg.v = url;
- loaduri(c, &arg);
-
- g_free(url);
-}
-
const char *
geturi(Client *c)
{
@@ -811,10 +807,6 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
cookiepolicy_get());
refresh = 0;
break;
- case DarkMode:
- g_object_set(gtk_settings_get_default(),
- "gtk-application-prefer-dark-theme", a->i, NULL);
- break;
case DiskCache:
webkit_web_context_set_cache_model(
webkit_web_view_get_context(c->view), a->i ?
@@ -1365,7 +1357,7 @@ processx(GdkXEvent *e, GdkEvent *event, gpointer d)
find(c, NULL);
return GDK_FILTER_REMOVE;
- } else if (ev->atom == atoms[AtomSearch]) {
+ } else if (ev->atom == atoms[AtomSearch]) {
a.v = getatom(c, AtomSearch);
search(c, &a);
} else if (ev->atom == atoms[AtomGo]) {