summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--surf.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/surf.c b/surf.c
index fae33d5..39b6f12 100644
--- a/surf.c
+++ b/surf.c
@@ -272,8 +272,8 @@ loadcommit(WebKitWebView *view, WebKitWebFrame *f, gpointer d) {
Client *c = (Client *)d;
gchar *uri;
- uri = geturi(c);
ignore_once = TRUE;
+ uri = geturi(c);
XChangeProperty(dpy, GDK_WINDOW_XID(GTK_WIDGET(c->win)->window), urlprop,
XA_STRING, 8, PropModeReplace, (unsigned char *)uri,
strlen(uri) + 1);
@@ -425,12 +425,16 @@ processx(GdkXEvent *e, GdkEvent *event, gpointer d) {
unsigned char *buf = NULL;
if(((XEvent *)e)->type == PropertyNotify) {
ev = &((XEvent *)e)->xproperty;
- if(ignore_once == FALSE && ev->atom == urlprop && ev->state == PropertyNewValue) {
- XGetWindowProperty(dpy, ev->window, urlprop, 0L, BUFSIZ, False, XA_STRING,
- &adummy, &idummy, &ldummy, &ldummy, &buf);
- loaduri(c, (gchar *)buf);
- XFree(buf);
- return GDK_FILTER_REMOVE;
+ if(ev->atom == urlprop && ev->state == PropertyNewValue) {
+ if(ignore_once)
+ ignore_once = FALSE;
+ else {
+ XGetWindowProperty(dpy, ev->window, urlprop, 0L, BUFSIZ, False, XA_STRING,
+ &adummy, &idummy, &ldummy, &ldummy, &buf);
+ loaduri(c, (gchar *)buf);
+ XFree(buf);
+ return GDK_FILTER_REMOVE;
+ }
}
}
return GDK_FILTER_CONTINUE;
com/avatar/8799cfa7ed875a98903d8054ef89e643?s=13&d=retro' width='13' height='13' alt='Gravatar' /> Enno Boland (tox) 2-4/+1 2010-05-17removing context-menu, downloading.Gravatar Enno Boland (tox) 2-122/+8 2010-05-15changing sessiontime to 3600Gravatar Enno Boland (tox) 1-1/+1 2010-05-11fix download/history bugGravatar Enno Boland (tox) 1-5/+0 2010-05-09Fix NOBACKGROUND meaningGravatar pancake 2-2/+2 2010-05-09changing default value of NOBACKGROUNDGravatar Enno Boland (tox) 1-1/+1 2010-05-09added js-fix by Troels Henriksen. Thanks :)Gravatar Enno Boland (tox) 1-9/+17 2010-05-08Do not set cookie session time if set to 0Gravatar pancake 2-2/+5 Add NOBACKGROUND config.def.h option - requires body {background-color} in style.css - fixes white background when loading pages 2010-05-06implementing naive file locking.Gravatar Enno Boland (tox) 1-0/+7 2010-05-06fixing compilerwarning in newer webkit versionsGravatar Enno Boland (tox) 1-2/+1 2010-05-06fixing config.mkGravatar Enno Boland (tox) 1-1/+1 2010-05-02Adding small fix by Alex Puterbaugh. Thanks.Gravatar Enno Boland (tox) 2-7/+6 2010-04-08remove empty linesGravatar pancake 1-3/+1 2010-03-29whoops... linking OoGravatar Enno Boland (tox) 1-3/+3 2010-03-26typofix.Gravatar Enno Boland (tox) 2-5/+5 2010-03-25reimplementing cookies. Now we need some file locking.Gravatar Enno Boland (tox) 1-2/+14 2010-03-25updating manpage, reformating help output.Gravatar Enno Boland (tox) 2-9/+19 2010-03-24fixing argument parsing.Gravatar Enno Boland (tox) 1-0/+2 2010-03-24fixing downloadsGravatar Enno Boland (tox) 1-8/+6 2010-03-24gotheaders will now be called correctly.Gravatar Enno Boland (tox) 1-1/+6