All pastes #240621 Raw Edit

Stuff

public text v1 · immutable
·published 2006-11-05 20:48 UTC
rendered paste body
  GdkWindow* win = GDK_WINDOW(widget->GetNativeData(NS_NATIVE_WIDGET));

  LOG(("Found native window %x", win));

  // Create the video window
  GdkWindowAttr attributes;

  attributes.window_type = GDK_WINDOW_CHILD;
  attributes.x = 0;
  attributes.y = 0;
  attributes.width = 0;
  attributes.height = 0;
  attributes.wclass = GDK_INPUT_OUTPUT;
  attributes.event_mask = GDK_POINTER_MOTION_MASK;

  mGdkWin = gdk_window_new(win, &attributes, GDK_WA_X | GDK_WA_Y);
  gdk_window_show(mGdkWin);