gtk_widget_show (xw->widget_osr);
gtk_widget_show (xw->widgetwindow_osr);
-#ifndef HAVE_XINPUT2
+#if !defined HAVE_XINPUT2 && !defined HAVE_PGTK
synthesize_focus_in_event (xw->widgetwindow_osr);
#endif
xw = XXWIDGET (view->model);
window = gtk_widget_get_window (xw->widgetwindow_osr);
+#ifndef HAVE_PGTK
embedder = gtk_widget_get_window (FRAME_GTK_OUTER_WIDGET (view->frame));
-
+#else
+ embedder = gtk_widget_get_window (view->widget);
+#endif
gdk_offscreen_window_set_embedder (window, embedder);
xw->embedder = view->frame;
xw->embedder_view = view;
{
double *xout = x_out_ptr;
double *yout = y_out_ptr;
+#ifndef HAVE_PGTK
struct xwidget *xw = find_xwidget_for_offscreen_window (window);
struct xwidget_view *xvw;
gint xoff, yoff;
*xout = x - xvw->x - xoff;
*yout = y - xvw->y - yoff;
}
+#else
+ *xout = x;
+ *yout = y;
+#endif
}
static void
{
double *xout = x_out_ptr;
double *yout = y_out_ptr;
+#ifndef HAVE_PGTK
struct xwidget *xw = find_xwidget_for_offscreen_window (window);
struct xwidget_view *xvw;
gint xoff, yoff;
*xout = x + xvw->x + xoff;
*yout = y + xvw->y + yoff;
}
+#else
+ *xout = x;
+ *yout = y;
+#endif
}
static GdkDevice *
}
#endif
-#ifdef HAVE_XINPUT2
+#if defined HAVE_XINPUT2 || defined HAVE_PGTK
record_osr_embedder (xv);
synthesize_focus_in_event (xww->widget_osr);
#endif