aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_x_vidmode_get_fd.c
blob: 656fcbce1af171fb615bb1f98316fbedf323c33f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* See LICENSE file for copyright and license details. */
#define IN_LIBGAMMA_X_VIDMODE
#include "common.h"


/**
 * Get the file descriptor used to communicate with the display server
 *
 * @param   this  The site state
 * @return        The file descriptor
 */
int
libgamma_x_vidmode_get_fd(struct libgamma_site_state *restrict this)
{
	return ConnectionNumber((Display *)this->data);
}