linux-capture: Add xcb screen to source data

Add xcb screen structure to the source data for later use in the porting
process.
master
fryshorts 2014-12-21 20:05:38 +01:00
parent 53ee22ae5a
commit e20cf649b8
1 changed files with 5 additions and 2 deletions

View File

@ -42,6 +42,7 @@ struct xshm_data {
Screen *screen;
xcb_connection_t *xcb;
xcb_screen_t *xcb_screen;
/** user setting - the server name to capture from */
char *server;
@ -115,6 +116,7 @@ static int_fast32_t xshm_update_geometry(struct xshm_data *data)
return -1;
}
data->screen = XDefaultScreenOfDisplay(data->dpy);
data->xcb_screen = xcb_get_screen(data->xcb, 0);
}
else {
data->x_org = 0;
@ -124,6 +126,7 @@ static int_fast32_t xshm_update_geometry(struct xshm_data *data)
return -1;
}
data->screen = XScreenOfDisplay(data->dpy, data->screen_id);
data->xcb_screen = xcb_get_screen(data->xcb, data->screen_id);
}
if (!data->width || !data->height) {