X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=config.def.h;h=a274b1e7e617357a58d854ee26bbc97ec0b7f6f7;hp=0a5d9fbe3b5253ab26f9bd2e0223ff3f663f8f28;hb=96188f83f0f77f93fc5f4590c1f1c8f13b78e599;hpb=4415c475f7063ac5df0a0cca6b6696f0987f1404 diff --git a/config.def.h b/config.def.h index 0a5d9fb..a274b1e 100644 --- a/config.def.h +++ b/config.def.h @@ -4,7 +4,7 @@ static char *useragent = "Mozilla/5.0 (X11; U; Unix; en-US) " "Chrome/24.0.1295.0 Safari/537.15 Surf/"VERSION; static char *scriptfile = "~/.surf/script.js"; static char *styledir = "~/.surf/styles/"; -static char *cachefolder = "~/.surf/cache/"; +static char *cachedir = "~/.surf/cache/"; static Bool kioskmode = FALSE; /* Ignore shortcuts */ static Bool showindicators = TRUE; /* Show indicators in window title */ @@ -129,12 +129,12 @@ static Key keys[] = { }; /* button definitions */ -/* click can be ClkDoc, ClkLink, ClkImg, ClkMedia, ClkSel, ClkEdit, ClkAny */ +/* where can be OnDoc, OnLink, OnImg, OnMedia, OnEdit, OnBar, OnSel, OnAny */ static Button buttons[] = { - /* click event mask button function argument */ - { ClkLink, 0, 2, linkopenembed, { 0 } }, - { ClkLink, MODKEY, 2, linkopen, { 0 } }, - { ClkLink, MODKEY, 1, linkopen, { 0 } }, - { ClkAny, 0, 8, navigate, { .i = -1 } }, - { ClkAny, 0, 9, navigate, { .i = +1 } }, + /* where event mask button function argument stop event */ + { OnLink, 0, 2, linkopenembed, { 0 }, 1 }, + { OnLink, MODKEY, 2, linkopen, { 0 }, 1 }, + { OnLink, MODKEY, 1, linkopen, { 0 }, 1 }, + { OnAny, 0, 8, navigate, { .i = -1 }, 1 }, + { OnAny, 0, 9, navigate, { .i = +1 }, 1 }, };