fix no-x11 build: some new functions were erroneously declared inside

the USE_X11 conditional block.
pull/15/head
John Tsiombikas 2022-04-02 01:17:41 +03:00
rodzic 9e7d2e860c
commit 12cff951bb
1 zmienionych plików z 9 dodań i 8 usunięć

Wyświetl plik

@ -50,14 +50,6 @@ OF SUCH DAMAGE.
static Window get_daemon_window(Display *dpy);
static int catch_badwin(Display *dpy, XErrorEvent *err);
static int read_event(int s, spnav_event *event);
static int proc_event(int *data, spnav_event *event);
static void flush_resp(void);
static int wait_resp(void *buf, int sz, int timeout_ms);
static int request(int req, struct reqresp *rr, int timeout_ms);
static int request_str(int req, char *buf, int bufsz, int timeout_ms);
static Display *dpy;
static Window app_win;
@ -73,6 +65,15 @@ enum {
#define IS_OPEN (sock != -1)
#endif
static int read_event(int s, spnav_event *event);
static int proc_event(int *data, spnav_event *event);
static void flush_resp(void);
static int wait_resp(void *buf, int sz, int timeout_ms);
static int request(int req, struct reqresp *rr, int timeout_ms);
static int request_str(int req, char *buf, int bufsz, int timeout_ms);
struct event_node {
spnav_event event;
struct event_node *next;