From 1a51d5fab79ace07e079071dab89c442c198fc9e Mon Sep 17 00:00:00 2001 From: fryshorts Date: Tue, 18 Nov 2014 20:15:25 +0100 Subject: [PATCH] linux-xshm: Improve source struct. This adds documentation to the source struct and moves one bool to the end to avoid a hole due to alignment. --- plugins/linux-capture/xshm-input.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/plugins/linux-capture/xshm-input.c b/plugins/linux-capture/xshm-input.c index 795c27c4d..fff1fe001 100644 --- a/plugins/linux-capture/xshm-input.c +++ b/plugins/linux-capture/xshm-input.c @@ -28,18 +28,23 @@ along with this program. If not, see . #define XSHM_DATA(voidptr) struct xshm_data *data = voidptr; struct xshm_data { + /** Xlib display object */ Display *dpy; + /** Xlib screen object */ Screen *screen; - + /** root coordinates for the capture */ int_fast32_t x_org, y_org; + /** size for the capture */ int_fast32_t width, height; - + /** shared memory management object */ xshm_t *xshm; + /** the texture used to display the capture */ gs_texture_t *texture; - - bool show_cursor; + /** cursor object for displaying the server */ xcursor_t *cursor; - + /** user setting - if cursor should be displayed */ + bool show_cursor; + /** set if xinerama is available and active on the screen */ bool use_xinerama; }; -- GitLab