fix parsing blank url by xatom
This commit is contained in:
parent
dce0c6d795
commit
2088e156df
5
window.c
5
window.c
|
@ -88,11 +88,12 @@ static gboolean key_press_callback(RoseWindow *window,
|
||||||
exit(1);
|
exit(1);
|
||||||
} else {
|
} else {
|
||||||
wait(&id);
|
wait(&id);
|
||||||
rose_webview_load_url(window->webview, getatom(AtomGo));
|
char *uri;
|
||||||
|
if (strcmp((uri = (char*)getatom(AtomGo)), ""))
|
||||||
|
rose_webview_load_url(window->webview, uri);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case find: {
|
case find: {
|
||||||
|
|
||||||
int id = fork();
|
int id = fork();
|
||||||
if (id == 0) {
|
if (id == 0) {
|
||||||
if (dpy)
|
if (dpy)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user