1 --- main.org.c 2003-10-04 02:19:23.000000000 +0200
2 +++ main.c 2004-01-04 22:26:26.724016128 +0100
4 " shaded, skip_taskbar, skip_pager, hidden,\n" \
5 " fullscreen, above, below\n" \
7 +" With Openbox3 you can additionaly use \"undecorated\".\n" \
11 " DESKTOP_TITLES_INVALID_UTF8 Print non-ASCII desktop titles correctly\n" \
13 fputs("Invalid zero length property.\n", stderr);
16 - tmp_prop2 = g_strdup_printf("_NET_WM_STATE_%s", tmp2 = g_ascii_strup(p2, -1));
17 + if (strcmp(p2,"undecorated") == 0) {
18 + tmp_prop2 = g_strdup_printf("_OB_WM_STATE_%s", tmp2 = g_ascii_strup(p2, -1));
21 + tmp_prop2 = g_strdup_printf("_NET_WM_STATE_%s", tmp2 = g_ascii_strup(p2, -1));
23 p_verbose("State 2: %s\n", tmp_prop2);
24 prop2 = XInternAtom(disp, tmp_prop2, False);
27 fputs("Invalid zero length property.\n", stderr);
30 - tmp_prop1 = g_strdup_printf("_NET_WM_STATE_%s", tmp1 = g_ascii_strup(p1, -1));
31 + if (strcmp(p1,"undecorated") == 0) {
32 + tmp_prop1 = g_strdup_printf("_OB_WM_STATE_%s", tmp1 = g_ascii_strup(p1, -1));
35 + tmp_prop1 = g_strdup_printf("_NET_WM_STATE_%s", tmp1 = g_ascii_strup(p1, -1));
37 p_verbose("State 1: %s\n", tmp_prop1);
38 prop1 = XInternAtom(disp, tmp_prop1, False);