title: C++ X11 get status of the caps lock
body: <p>I need get the state of the CAPS LOCK using C++. I tried to get the state using <code>XkbGetIndicatorState</code>, but it doesn't work.</p>
  
  <p>Can someone help me?</p>