Nepherte (dot) be

Patching a bug in wmctrl

I was trying to use a python script (to tile my windows) that makes use of wmctrl to determine what windows were active and on what desktop they reside. I’ll save that python script for another post. The problem is that wmctrl malfunctioned on 64 bit systems like mine. The percieved error is:

wmctrl -d
GLib-ERROR **: gmem.c:156: failed to allocate 1117103813820448 bytes
aborting...

the command wmctrl -l worked for me but someone else reported he experienced problems with that as well. With some help of the Arch Linux forum a patch came up that solved the issue. You can get the patch here. I also created a pkgbuild for Arch Linux to install the patched wmctrl. Other distributions can easily follow the compilation instructions inside if they’re affected by the bug as well.

Leave a Reply