$NetBSD: patch-aa,v 1.1.1.1 2004/01/28 22:42:58 snj Exp $ --- main.c.orig 2004-01-27 12:52:49.000000000 -0800 +++ main.c 2004-01-27 13:01:52.000000000 -0800 @@ -145,6 +145,8 @@ " shaded, skip_taskbar, skip_pager, hidden,\n" \ " fullscreen, above, below\n" \ "\n" \ +" With Openbox3 you can also use \"undecorated\".\n" \ +"\n" \ "Workarounds:\n" \ "\n" \ " DESKTOP_TITLES_INVALID_UTF8 Print non-ASCII desktop titles correctly\n" \ @@ -736,7 +738,11 @@ fputs("Invalid zero length property.\n", stderr); return EXIT_FAILURE; } - tmp_prop2 = g_strdup_printf("_NET_WM_STATE_%s", tmp2 = g_ascii_strup(p2, -1)); + if (strcmp(p2,"undecorated") == 0) { + tmp_prop2 = g_strdup_printf("_OB_WM_STATE_%s", tmp2 = g_ascii_strup(p2,-1)); + } else { + tmp_prop2 = g_strdup_printf("_NET_WM_STATE_%s", tmp2 = g_ascii_strup(p2,-1)); + } p_verbose("State 2: %s\n", tmp_prop2); prop2 = XInternAtom(disp, tmp_prop2, False); g_free(tmp2); @@ -748,7 +754,11 @@ fputs("Invalid zero length property.\n", stderr); return EXIT_FAILURE; } - tmp_prop1 = g_strdup_printf("_NET_WM_STATE_%s", tmp1 = g_ascii_strup(p1, -1)); + if (strcmp(p1,"undecorated") == 0) { + tmp_prop1 = g_strdup_printf("_OB_WM_STATE_%s", tmp1 = g_ascii_strup(p1,-1)); + } else { + tmp_prop1 = g_strdup_printf("_NET_WM_STATE_%s", tmp1 = g_ascii_strup(p1,-1)); + } p_verbose("State 1: %s\n", tmp_prop1); prop1 = XInternAtom(disp, tmp_prop1, False); g_free(tmp1);