That is interesting -- thanks for the pointer! I wonder if writing raw X code is a good idea -- people say Wayland is the future (but they've been saying that for a decade). I don't know how toolkits like gtk work with it -- that was one reason to stick with gtk for so long.