diff options
author | snj <snj@pkgsrc.org> | 2004-01-28 22:42:57 +0000 |
---|---|---|
committer | snj <snj@pkgsrc.org> | 2004-01-28 22:42:57 +0000 |
commit | 82c76a28e8a3c1e11daf5687000871342aa29c21 (patch) | |
tree | e301def52f916d2a9e214122bb30800d97e02e13 /wm/wmctrl/patches | |
parent | 168c2fdf38bb585d07fa71b6d3f07ef2f1d7798a (diff) | |
download | pkgsrc-82c76a28e8a3c1e11daf5687000871342aa29c21.tar.gz |
Initial import of wmctrl-1.05, a command line interface to an EWMH-compliant
window manager.
Diffstat (limited to 'wm/wmctrl/patches')
-rw-r--r-- | wm/wmctrl/patches/patch-aa | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/wm/wmctrl/patches/patch-aa b/wm/wmctrl/patches/patch-aa new file mode 100644 index 00000000000..aa85fc68aa7 --- /dev/null +++ b/wm/wmctrl/patches/patch-aa @@ -0,0 +1,39 @@ +$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); |