From: Ivy Foster <i...@escondida.tk>

The function is deprecated. Also, GTK automatically sets the class to
what surf was manually setting it to.
---

Hello! I thought that the best greeting would be a patch, so here's a
tiny one.

Specifically, gtk_window_set_wmclass is deprecated as of gtk 3.22.

 surf.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/surf.c b/surf.c
index 0f8b9c9..d513a01 100644
--- a/surf.c
+++ b/surf.c
@@ -1342,10 +1342,6 @@ createwindow(Client *c)
        } else {
                w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
 
-               wmstr = g_path_get_basename(argv0);
-               gtk_window_set_wmclass(GTK_WINDOW(w), wmstr, "Surf");
-               g_free(wmstr);
-
                wmstr = g_strdup_printf("%s[%lu]", "Surf",
                        webkit_web_view_get_page_id(c->view));
                gtk_window_set_role(GTK_WINDOW(w), wmstr);
-- 
2.15.0


Reply via email to