例外を発生させない次のコードがありますが、MapRequests や ConfigureNotifys などのイベントを受信していないようです:
import xcb
import xcb.xproto as xproto
conn = xcb.connect()
root = conn.get_setup().roots[0].root
eventmask = [xproto.EventMask.SubstructureRedirect, xproto.EventMask.SubstructureNotify]
conn.core.ChangeWindowAttributesChecked(self.root, xproto.CW.EventMask, eventmask)
while True:
e = conn.wait_for_event()
print e
これを Xephyr でテストしています。
私は何か間違ったことをしていますか?もしそうなら、どうすれば修正できますか?