{
PROP_0,
PROP_DISPLAY_NAME,
- PROP_SCREEN_NUM,
PROP_SHOW_POINTER,
PROP_USE_DAMAGE,
PROP_STARTX,
g_free (src->display_name);
src->display_name = g_strdup (g_value_get_string (value));
break;
- case PROP_SCREEN_NUM:
- src->screen_num = g_value_get_uint (value);
- break;
case PROP_SHOW_POINTER:
src->show_pointer = g_value_get_boolean (value);
break;
g_value_set_string (value, src->display_name);
break;
- case PROP_SCREEN_NUM:
- g_value_set_uint (value, src->screen_num);
- break;
case PROP_SHOW_POINTER:
g_value_set_boolean (value, src->show_pointer);
break;
g_object_class_install_property (gc, PROP_DISPLAY_NAME,
g_param_spec_string ("display-name", "Display", "X Display Name", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (gc, PROP_SCREEN_NUM,
- g_param_spec_uint ("screen-num", "Screen number", "X Screen Number",
- 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gc, PROP_SHOW_POINTER,
g_param_spec_boolean ("show-pointer", "Show Mouse Pointer",
"Show mouse pointer (if XFixes extension enabled)", TRUE,
Window xwindow;
gchar *display_name;
- guint screen_num;
/* Window selection */
guint64 xid;
return NULL;
}
xcontext->screen = DefaultScreenOfDisplay (xcontext->disp);
- xcontext->screen_num = DefaultScreen (xcontext->disp);
- xcontext->visual = DefaultVisual (xcontext->disp, xcontext->screen_num);
- xcontext->root = DefaultRootWindow (xcontext->disp);
- xcontext->white = XWhitePixel (xcontext->disp, xcontext->screen_num);
- xcontext->black = XBlackPixel (xcontext->disp, xcontext->screen_num);
+ xcontext->visual = DefaultVisualOfScreen (xcontext->screen);
+ xcontext->root = RootWindowOfScreen (xcontext->screen);
+ xcontext->white = WhitePixelOfScreen (xcontext->screen);
+ xcontext->black = BlackPixelOfScreen (xcontext->screen);
xcontext->depth = DefaultDepthOfScreen (xcontext->screen);
- xcontext->width = DisplayWidth (xcontext->disp, xcontext->screen_num);
- xcontext->height = DisplayHeight (xcontext->disp, xcontext->screen_num);
+ xcontext->width = WidthOfScreen (xcontext->screen);
+ xcontext->height = HeightOfScreen (xcontext->screen);
- xcontext->widthmm = DisplayWidthMM (xcontext->disp, xcontext->screen_num);
- xcontext->heightmm = DisplayHeightMM (xcontext->disp, xcontext->screen_num);
+ xcontext->widthmm = WidthMMOfScreen (xcontext->screen);
+ xcontext->heightmm = HeightMMOfScreen (xcontext->screen);
xcontext->caps = NULL;
* GstXContext:
* @disp: the X11 Display of this context
* @screen: the default Screen of Display @disp
- * @screen_num: the Screen number of @screen
* @visual: the default Visual of Screen @screen
* @root: the root Window of Display @disp
* @white: the value of a white pixel on Screen @screen
Display *disp;
Screen *screen;
- gint screen_num;
Visual *visual;