[openbox] How do I get programs to start undecorated [wmctrl patch]
Grzegorz Kusnierz
koniu at bezkitu.com
Mon Jan 19 01:07:14 EST 2004
On Sun, Jan 18, 2004 at 05:31:21PM -0800, Marc Wilson wrote:
> On Sun, Jan 18, 2004 at 02:00:47PM -0800, Brett Campbell wrote:
> > typing `wmctrl -h` you should now see the extra <STARG> 'undecorated'.
> Why? The patch doesn't make any changes to help text.
The inital one does.
--
___________________________________________________
| /)/)
| Grzegorz Kuśnierz | JID: koniu at bezkitu.com | ( ^^\
| koniu at bezkitu.com | ICQ: 213689452 | /'-._)
| www.bezkitu.com | GG: 1799993 /#/
\_______________________________________________/#/
-------------- next part --------------
--- main.org.c 2003-10-04 02:19:23.000000000 +0200
+++ main.c 2004-01-04 22:26:26.724016128 +0100
@@ -144,6 +144,8 @@
" shaded, skip_taskbar, skip_pager, hidden,\n" \
" fullscreen, above, below\n" \
"\n" \
+" With Openbox3 you can additionaly use \"undecorated\".\n" \
+"\n" \
"Workarounds:\n" \
"\n" \
" DESKTOP_TITLES_INVALID_UTF8 Print non-ASCII desktop titles correctly\n" \
@@ -731,7 +733,12 @@
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);
@@ -743,7 +750,12 @@
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);
More information about the openbox
mailing list