gboolean zoomed, fullscreen, isinspecting, sslfailed;
} Client;
-typedef struct {
- char *label;
- void (*func)(Client *c, const Arg *arg);
- const Arg arg;
-} Item;
-
typedef struct {
guint mod;
guint keyval;
static char winid[64];
static gboolean usingproxy = 0;
static char togglestat[5];
-static char pagestat[2];
+static char pagestat[3];
static void beforerequest(WebKitWebView *w, WebKitWebFrame *f,
WebKitWebResource *r, WebKitNetworkRequest *req,
static void
getpagestat(Client *c) {
- pagestat[0] = c->sslfailed ? 'U' : 'T';
+ const char *uri = geturi(c);
+
+ if(strstr(uri, "https://") == uri) {
+ pagestat[0] = c->sslfailed ? 'U' : 'T';
+ } else {
+ pagestat[0] = '-';
+ }
+
pagestat[1] = usingproxy ? 'P' : '-';
+ pagestat[2] = '\0';
+
}
static void