twirl on old x11 browsers too

This commit is contained in:
David Rose 2011-08-31 20:52:30 +00:00
parent 02ea25e30c
commit c43d6a969f

View File

@ -2958,7 +2958,16 @@ x11_twirl_subprocess_run() {
unsigned long attrib_mask = CWBackPixel | CWBorderPixel | CWEventMask;
X11_Window parent = GDK_DRAWABLE_XID(_plug->window);
X11_Window parent = 0;
if (_use_xembed) {
#ifdef HAVE_GTK
assert(_plug != NULL);
parent = GDK_DRAWABLE_XID(_plug->window);
#endif // HAVE_GTK
} else {
parent = (X11_Window)(_window.window);
}
X11_Window window = XCreateWindow
(display, parent, 0, 0, _window.width, _window.height,
0, depth, InputOutput, dvisual, attrib_mask, &wa);