summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wm/wmctrl/DESCR12
-rw-r--r--wm/wmctrl/Makefile19
-rw-r--r--wm/wmctrl/PLIST2
-rw-r--r--wm/wmctrl/distinfo5
-rw-r--r--wm/wmctrl/patches/patch-aa39
5 files changed, 77 insertions, 0 deletions
diff --git a/wm/wmctrl/DESCR b/wm/wmctrl/DESCR
new file mode 100644
index 00000000000..063af4c05b3
--- /dev/null
+++ b/wm/wmctrl/DESCR
@@ -0,0 +1,12 @@
+wmctrl is a command line tool to interact with an EWMH/NetWM compatible X
+Window Manager.
+
+It provides command line access to almost all the features defined in the EWMH
+specification. Using it, it's possible to, for example, obtain information
+about the window manager, get a detailed list of desktops and managed windows,
+switch and resize desktops, change number of desktops, make windows
+full-screen, always-above or sticky, and activate, close, move, resize,
+maximize and minimize them.
+
+The command line access makes it easy to automate these tasks and execute them
+from any application that is able to run a command in response to some event.
diff --git a/wm/wmctrl/Makefile b/wm/wmctrl/Makefile
new file mode 100644
index 00000000000..4e878e80fbb
--- /dev/null
+++ b/wm/wmctrl/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/28 22:42:57 snj Exp $
+
+DISTNAME= wmctrl-1.05
+CATEGORIES= wm
+MASTER_SITES= http://sweb.cz/tripie/utils/wmctrl/dist/
+
+MAINTAINER= snj@NetBSD.org
+HOMEPAGE= http://sweb.cz/tripie/utils/wmctrl/
+COMMENT= Command line interface to an EWMH-compliant WM
+
+GNU_CONFIGURE= YES
+USE_BUILDLINK2= YES
+USE_PKGLOCALEDIR= YES
+USE_X11= YES
+
+.include "../../devel/glib2/buildlink2.mk"
+.include "../../devel/pkgconfig/buildlink2.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/wm/wmctrl/PLIST b/wm/wmctrl/PLIST
new file mode 100644
index 00000000000..859eeb3c470
--- /dev/null
+++ b/wm/wmctrl/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/28 22:42:57 snj Exp $
+bin/wmctrl
diff --git a/wm/wmctrl/distinfo b/wm/wmctrl/distinfo
new file mode 100644
index 00000000000..0d88e6ff72d
--- /dev/null
+++ b/wm/wmctrl/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/28 22:42:57 snj Exp $
+
+SHA1 (wmctrl-1.05.tar.gz) = 1d1cd71680ff1dac906a04775070a7f0b9711475
+Size (wmctrl-1.05.tar.gz) = 83049 bytes
+SHA1 (patch-aa) = 1531a6a6f02d195c10d4ead305aacb6aef1ce66a
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);