Skip to content

Commit

Permalink
Enable xinput2 on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi authored and LordReg committed May 22, 2019
1 parent f3d7a4d commit a0c595f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions Makefile
Expand Up @@ -8,11 +8,11 @@ SUBDIR= lib
PROG=spectrwm
MAN=spectrwm.1

CFLAGS+=-std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g
CFLAGS+=-std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized
# Uncomment define below to disallow user settable clock format string
#CFLAGS+=-DSWM_DENY_CLOCK_FORMAT
CPPFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/freetype2
LDADD+=-lutil -L${X11BASE}/lib -lX11 -lX11-xcb -lxcb-util -lxcb-icccm -lxcb-keysyms -lxcb-randr -lxcb-xtest -lXft -lXcursor
LDADD+=-lutil -L${X11BASE}/lib -lX11 -lX11-xcb -lxcb -lxcb-util -lxcb-icccm -lxcb-keysyms -lxcb-randr -lxcb-xinput -lxcb-xtest -lXft -lXcursor
BUILDVERSION != sh "${.CURDIR}/buildver.sh"
.if !${BUILDVERSION} == ""
CPPFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
Expand All @@ -22,9 +22,6 @@ MANDIR= ${PREFIX}/man/man

obj: _xenocara_obj

beforeinstall:
ln -sf ${PROG} ${BINDIR}/scrotwm

spectrwm.html: spectrwm.1
mandoc -Thtml ${.CURDIR}/spectrwm.1 > spectrwm.html

Expand Down
2 changes: 1 addition & 1 deletion lib/Makefile
Expand Up @@ -12,7 +12,7 @@ CC?= cc
DEBUGLIBS= no
NOPROFILE= yes

CFLAGS+= -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g
CFLAGS+= -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized
CFLAGS+= -fPIC
CFLAGS+= -I${X11BASE}/include

Expand Down
2 changes: 1 addition & 1 deletion spectrwm.c
Expand Up @@ -80,7 +80,7 @@
#include <xcb/xcb_event.h>
#include <xcb/xcb_icccm.h>
#include <xcb/xcb_keysyms.h>
#if defined(__linux__) || defined(__FreeBSD__)
#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <xcb/xinput.h>
#define SWM_XCB_HAS_XINPUT
#endif
Expand Down

0 comments on commit a0c595f

Please sign in to comment.