diff -r 2ea243e2ca82 surf.c --- a/surf.c Sun Nov 20 16:06:38 2011 +0100 +++ b/surf.c Thu Jan 12 13:21:37 2012 -0500 @@ -62,7 +62,7 @@ static gboolean showxid = FALSE; static char winid[64]; static char *progname; -static gboolean loadimage = 1, plugin = 1, script = 1; +static gboolean loadimage = 1, plugin = 1, script = 1, spatial = 1; static char *buildpath(const char *path); static void cleanup(void); @@ -103,7 +103,6 @@ static void sigchld(int unused); static void source(Client *c, const Arg *arg); static void spawn(Client *c, const Arg *arg); -static void eval(Client *c, const Arg *arg); static void stop(Client *c, const Arg *arg); static void titlechange(WebKitWebView *v, WebKitWebFrame* frame, const char* title, Client *c); static void update(Client *c); @@ -529,7 +528,7 @@ g_object_set(G_OBJECT(settings), "auto-load-images", loadimage, NULL); g_object_set(G_OBJECT(settings), "enable-plugins", plugin, NULL); g_object_set(G_OBJECT(settings), "enable-scripts", script, NULL); - g_object_set(G_OBJECT(settings), "enable-spatial-navigation", true, NULL); + g_object_set(G_OBJECT(settings), "enable-spatial-navigation", spatial, NULL); g_free(uri); @@ -773,12 +772,6 @@ } void -eval(Client *c, const Arg *arg) { - WebKitWebFrame *frame = webkit_web_view_get_main_frame(c->view); - evalscript(frame, webkit_web_frame_get_global_context(frame), ((char **)arg->v)[0], ""); -} - -void stop(Client *c, const Arg *arg) { webkit_web_view_stop_loading(c->view); }