diff -crB wmctrl-1.07/main.c wmctrl-1.07.patched/main.c *** wmctrl-1.07/main.c 2005-01-29 14:31:33.000000000 +1100 --- wmctrl-1.07.patched/main.c 2013-01-19 23:02:30.000000000 +1100 *************** *** 1439,1444 **** --- 1439,1451 ---- return NULL; } + #ifdef __x86_64 + if (ret_format == 32) + { + ret_format *= 2; + } + #endif + /* null terminate the result to make string handling easier */ tmp_size = (ret_format / 8) * ret_nitems; ret = g_malloc(tmp_size + 1);