Skip to content

Commit

Permalink
for 2.45.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jun7 committed Aug 13, 2024
1 parent 47dd6a4 commit 3f56f41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static Win *winbyid(const char *pageid)
{
Win *win = wins->pdata[i];
if (intid == webkit_web_view_get_page_id(win->kit)
|| !strcmp(pageid, win->winid))
|| !g_strcmp0(pageid, win->winid))
return win;

if (win->maychanged)
Expand Down Expand Up @@ -1416,6 +1416,9 @@ static void envspawn(Spawn *p,
snprintf(buf, 9, "%d", wins->len);
envp = g_environ_setenv(envp, "WINSLEN", buf, true);
envp = g_environ_setenv(envp, "SUFFIX" , *suffix ? suffix : "/", true);
if (!win->winid)
win->winid = g_strdup_printf("%"G_GUINT64_FORMAT,
webkit_web_view_get_page_id(win->kit));
envp = g_environ_setenv(envp, "WINID" , win->winid, true);
envp = g_environ_setenv(envp, "CURRENTSET", win->overset ?: "", true);
envp = g_environ_setenv(envp, "URI" , URI(win), true);
Expand Down Expand Up @@ -4786,9 +4789,6 @@ Win *newwin(const char *uri, Win *cbwin, Win *caller, int back)

gtk_container_add(GTK_CONTAINER(win->win), box);

win->winid = g_strdup_printf("%"G_GUINT64_FORMAT,
webkit_web_view_get_page_id(win->kit));

g_ptr_array_add(wins, win);
if (back == 2)
return win;
Expand Down

0 comments on commit 3f56f41

Please sign in to comment.