Xnest in Xembed
tsuraan
tsuraan at gmail.com
Tue Sep 30 18:05:01 PDT 2008
I'm trying to use the -parent flag to Xnest, and not having much luck
with it. I'm using an xembed container in Qt (which works with
mplayer, source below), and I'm trying to run Xnest as
Xnest -parent <winid> :1
I've tried different variations on -class, -sss, -install, and other
things that don't make sense to me, but everything I try gives me the
error:
X Error of failed request: BadAccess (attempt to access private
resource denied)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Serial number of failed request: 155
Current serial number in output stream: 156
Just before Xnest exits, I see a flash of XScreenSaver in a grainy
black and white pattern. Xnest works fine without the -parent flag,
aside from the fact that it isn't embedded that way.
Does anybody use Xnest in Xembed mode, and if so, can anybody lend me
a hand? I've pasted the source for my simple Qt app, and attached the
output of an strace of my failed Xnest run.
tsuraan at macbeth ~/test $ cat xembed.cpp
#include <QApplication>
#include <QX11EmbedContainer>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QX11EmbedContainer container(0);
container.show();
cout << "id is " << container.winId() << endl;
return app.exec();
}
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xnest.strace
URL: <http://lists.x.org/archives/xorg/attachments/20080930/59de2dc7/attachment.ksh>
More information about the xorg
mailing list