Dear Slackers,
I am using Slackware 14 64 bit and installed using sbopkg wmctrl; I use openbox as window manager and want to control the different started apps using wmctrl;
now having maybe 8 windows open the
should give a list of all windows but it doesn't. It appears that this has to do 64 bit version.
I found some code
Code:
#ifdef __x86_64
if(ret_type == 32) tmp_size *=2;
#endif
To add ad main.c at line 1441;
I modified manually main.c and executed the slackbuild; but it won't compile.
Background why I want this is this article by urukrama :
http://urukrama.wordpress.com/2012/0...-applications/
The code was taken from here:
x86_64 part 2
Posted 6th Mar 2012 at 16:57 by Rod3775
Tags 64 bit, wmctrl, xwindows
When XWindows was ported to 64 bit architectures, the decision was made (probably for legacy compatibility) not to add a 64 bit data format to routines that return overloaded pointers, specifically XGetWindowProperties. Pointers, which are 64 bits, are returned in 64 bit elements that are claimed to be 32 bits. There is no way to cope with this in user code, except to check which architecture you are running on. The compiler define "__x86_64" is set on Intel 64 bit compilers. wmctrl (not part of base Slackware, but available as a Slackbuild), uses this routine and fails. In wmctrl-1.07/main.c add the following after line 1441 to fix the problem:
#ifdef __x86_64
if(ret_type == 32) tmp_size *=2;
#endif
Any pointers are much appreciated
Marcel