I am trying to embed the ingex player in a desktop application on OpenSuse 11. When I specify the parameter "-window-id" with the X11 window, I receive the following error message :
X error of failed request : BadAccess (attempt to access private resource denied)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
And then the application exits.
When I initiate the embedding from my application it works, but I have to wait for the ingex player to draw its window, get his window id, read some display information using xwininfo (like the display size) and then resize my container. This is a bit troublesome and I want to avoid all this.
What can be the cause of this issue?
Do you implement the XEmbed protocol??
Philip de Nier
It's not something we've tried and so I don't have any specific answers.
One suggestions is that you investigate further to determine where exactly in the player code the X11 error occurs. My guess, given the X_ChangeWindowAttributes reference in the error message, is the cause is somewhere in the x11c_update_window function in x11_common.c. Maybe the X11 function calls in that function should be surrounded by XLockDisplay / XUnlockDisplay.
We don't implement the XEmbed protocol.
Thanks a lot for your reply. I will try your solution.