title: It's said that `libX11` is not thread-safe. Does this mean I can't mix Java AWT with something else that also uses X11, like Qt?
body: <p>It's said that <code>libX11</code> is not thread-safe. Does this mean that if I have a Java application that already uses AWT (either directly, or indirectly through Swing), that I can't use another toolkit (like Qt, or some other library that uses X11) besides it (in the same process)?</p>
  
  <p>To my understanding, the toolkits wouldn't know of each other, would start their own event handling threads on top of <code>libX11</code> and therefore use <code>libX11</code> in multiple threads, which sounds problematic because <code>libX11</code> is not thread-safe.</p>
  
  <p>Or does AWT have some means that I'm not aware of to synchronize with other users of <code>libX11</code> within the same process?</p>