From 2088e156df87dfedd6ae5575b90c2c29a2ed693f Mon Sep 17 00:00:00 2001 From: fenze Date: Fri, 13 May 2022 14:14:19 +0200 Subject: [PATCH] fix parsing blank url by xatom --- window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/window.c b/window.c index cebbe81..2328f8c 100644 --- a/window.c +++ b/window.c @@ -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)