Introduction
Introduction Statistics Contact Development Disclaimer Help
Unset previous user styles before applying another one - surf - surf browser, a…
git clone git://git.suckless.org/surf
Log
Files
Refs
README
LICENSE
---
commit a1328457cff30dc678a1b8e80dc44ddb73ce293c
parent 25652669ef1fc4c0024542c5d7a90a58ba99bcbd
Author: Quentin Rameau <[email protected]>
Date: Thu, 18 May 2017 16:42:59 +0200
Unset previous user styles before applying another one
Diffstat:
M surf.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/surf.c b/surf.c
@@ -782,11 +782,10 @@ setparameter(Client *c, int refresh, ParamName p, const A…
WEBKIT_TLS_ERRORS_POLICY_IGNORE);
break;
case Style:
+ webkit_user_content_manager_remove_all_style_sheets(
+ webkit_web_view_get_user_content_manager(c->view));
if (a->b)
setstyle(c, getstyle(geturi(c)));
- else
- webkit_user_content_manager_remove_all_style_sheets(
- webkit_web_view_get_user_content_manager(c->view));
refresh = 0;
break;
case ZoomLevel:
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.