fix parsing blank url by xatom

This commit is contained in:
fenze 2022-05-13 14:14:19 +02:00
parent dce0c6d795
commit 2088e156df

View File

@ -88,11 +88,12 @@ static gboolean key_press_callback(RoseWindow *window,
exit(1);
} else {
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;
case find: {
int id = fork();
if (id == 0) {
if (dpy)