X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=29bf8c67b6efb8019f79330234c4d698cdaee717;hb=7822a6e829638c83bc8743b593144145cb531f5c;hp=314696708eb6dd42d8032ede03e33d35f7884c7e;hpb=4384cf198a38951839dfbd6abcab72d75076c593;p=surf.git diff --git a/surf.c b/surf.c index 3146967..29bf8c6 100644 --- a/surf.c +++ b/surf.c @@ -348,11 +348,8 @@ loaduri(Client *c, const Arg *arg) { void navigate(Client *c, const Arg *arg) { - gboolean forward = *(gboolean *)arg; - if(forward) - webkit_web_view_go_forward(c->view); - else - webkit_web_view_go_back(c->view); + gint steps = *(gint *)arg; + webkit_web_view_can_go_back_or_forward(c->view, steps); } Client *