Skip to content

Commit 12cff95

Browse files
committed
fix no-x11 build: some new functions were erroneously declared inside
the USE_X11 conditional block.
1 parent 9e7d2e8 commit 12cff95

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/spnav.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@ OF SUCH DAMAGE.
5050
static Window get_daemon_window(Display *dpy);
5151
static int catch_badwin(Display *dpy, XErrorEvent *err);
5252

53-
static int read_event(int s, spnav_event *event);
54-
static int proc_event(int *data, spnav_event *event);
55-
56-
static void flush_resp(void);
57-
static int wait_resp(void *buf, int sz, int timeout_ms);
58-
static int request(int req, struct reqresp *rr, int timeout_ms);
59-
static int request_str(int req, char *buf, int bufsz, int timeout_ms);
60-
6153

6254
static Display *dpy;
6355
static Window app_win;
@@ -73,6 +65,15 @@ enum {
7365
#define IS_OPEN (sock != -1)
7466
#endif
7567

68+
static int read_event(int s, spnav_event *event);
69+
static int proc_event(int *data, spnav_event *event);
70+
71+
static void flush_resp(void);
72+
static int wait_resp(void *buf, int sz, int timeout_ms);
73+
static int request(int req, struct reqresp *rr, int timeout_ms);
74+
static int request_str(int req, char *buf, int bufsz, int timeout_ms);
75+
76+
7677
struct event_node {
7778
spnav_event event;
7879
struct event_node *next;

0 commit comments

Comments
 (0)