summaryrefslogtreecommitdiffstats
path: root/surf.c
diff options
context:
space:
mode:
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/surf.c b/surf.c
index bacf78f..8f85f7b 100644
--- a/surf.c
+++ b/surf.c
@@ -948,6 +948,7 @@ showview(WebKitWebView *v, Client *c)
GtkWidget *
createwindow(Client *c)
{
+ char *wmstr;
GtkWidget *w;
if (embed) {
@@ -955,19 +956,14 @@ createwindow(Client *c)
} else {
w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
- /* TA: 20091214: Despite what the GNOME docs say, the ICCCM
- * is always correct, so we should still call this function.
- * But when doing so, we *must* differentiate between a
- * WM_CLASS and a resource on the window. By convention, the
- * window class (WM_CLASS) is capped, while the resource is in
- * lowercase. Both these values come as a pair.
- */
- gtk_window_set_wmclass(GTK_WINDOW(w), "surf", "Surf");
+ wmstr = g_path_get_basename(argv0);
+ gtk_window_set_wmclass(GTK_WINDOW(w), wmstr, "Surf");
+ g_free(wmstr);
- /* TA: 20091214: And set the role here as well -- so that
- * sessions can pick this up.
- */
- gtk_window_set_role(GTK_WINDOW(w), "Surf");
+ wmstr = g_strdup_printf("%s[%lu]", "Surf",
+ webkit_web_view_get_page_id(c->view));
+ gtk_window_set_role(GTK_WINDOW(w), wmstr);
+ g_free(wmstr);
gtk_window_set_default_size(GTK_WINDOW(w), 800, 600);
}
an> 2010-05-28Adding Nibbles patchGravatar Enno Boland (tox) 2-14/+8 2010-05-26typoGravatar Enno Boland (tox) 1-2/+2 2010-05-26Applying Nibbles download patch. Thanks!Gravatar Enno Boland (tox) 2-0/+20 2010-05-25changing user agent string as suggested by Marvin VekGravatar Enno Boland (tox) 1-1/+1 2010-05-24removing spatial navigation.Gravatar Enno Boland (tox) 1-1/+0 2010-05-24implementing downloading.Gravatar Enno Boland (tox) 1-1/+9 2010-05-24enabling spatial-navigationGravatar Enno Boland (tox) 1-0/+1 2010-05-18AtomHiLight is set correctly for links.Gravatar Enno Boland (tox) 1-1/+21 2010-05-17changing xpropsGravatar Enno Boland (tox) 2-32/+35 2010-05-17dl is not needed anymoreGravatar 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 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