mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-30 22:13:54 +00:00
30 lines
638 B
C
30 lines
638 B
C
#pragma once
|
|
#ifndef XDISPLAY_H
|
|
#define XDISPLAY_H
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
/* Returns the main display, closed either on exit or when closeMainDisplay()
|
|
* is invoked. This removes a bit of the overhead of calling XOpenDisplay() &
|
|
* XCloseDisplay() everytime the main display needs to be used.
|
|
*
|
|
* Note that this is almost certainly not thread safe. */
|
|
Display *XGetMainDisplay(void);
|
|
|
|
/* Closes the main display if it is open, or does nothing if not. */
|
|
void XCloseMainDisplay(void);
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
char *getXDisplay(void);
|
|
void setXDisplay(char *name);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* XDISPLAY_H */
|