X的设置问题?

我装了hero3,有的时候能运行有的时候就不行,只要一运行就出现
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 42 (X_SetInputFocus)
Serial number of failed request: 70
Current serial number in output stream: 71
这时就黑屏了,
这是怎么回事呢?谢谢