I've noticed that surf does not seem to set X Hints, therefore surf windows
does not behave with dwm.
This patch should fix the problem.

Regards,
Lorenzo





$ diff -c surf.c.orig surf.c
*** surf.c.orig 2009-08-24 12:21:03.000000000 +0100
--- surf.c 2009-08-24 16:35:02.000000000 +0100
***************
*** 372,377 ****
--- 372,381 ----
   gtk_container_add(GTK_CONTAINER(c->vbox), c->searchbar);
   gtk_container_add(GTK_CONTAINER(c->vbox), c->urlbar);

+ /* Hints */
+     GdkGeometry hints = { 1, 1 };
+     gtk_window_set_geometry_hints(GTK_WINDOW(c->win), NULL, &hints,
GDK_HINT_MIN_SIZE);
+
   /* Setup */
   gtk_box_set_child_packing(GTK_BOX(c->vbox), c->urlbar, FALSE, FALSE, 0,
GTK_PACK_START);
   gtk_box_set_child_packing(GTK_BOX(c->vbox), c->searchbar, FALSE, FALSE,
0, GTK_PACK_START);

Reply via email to