Get a screenshot of a window that is cover or not visible or minimized with Xcomposite extension for X11

ぐ巨炮叔叔 提交于 2019-12-01 00:47:04

I am able to reproduce your error as follows:

$ ./xidtest 
COMPOSITE IS ENABLED!
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  142 (Composite)
  Minor opcode of failed request:  1 ()
  Resource id in failed request:  0x5600007
  Serial number of failed request:  9
  Current serial number in output stream:  12

When set using a window id I knew to exist (0x440000B or 71303179, found using xwininfo), I received no error:

$ ./xidtest 
COMPOSITE IS ENABLED!

I conclude that the error is the window id you have provided is invalid.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!