Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It seems that wmctrl is not installed on my system (Mac OS 10.8), but when I try to install it by cloning a git repo and following the instructions (./configure, make, make install), running make results in a bunch of errors, the first few of which look like this:

main.c:33:22: error: X11/Xlib.h: No such file or directory
main.c:34:23: error: X11/Xatom.h: No such file or directory
main.c:35:28: error: X11/cursorfont.h: No such file or directory
main.c:36:29: error: X11/Xmu/WinUtil.h: No such file or directory

Does the wmctrl directory need to be somewhere else?

share|improve this question

I got it using homebrew brew install homebrew/x11/wmctrl from

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.