Skip to content
Permalink
Browse files

Enable xinput2 on OpenBSD

  • Loading branch information...
dajohi authored and LordReg committed Sep 21, 2018
1 parent f3d7a4d commit a0c595fde4d3718c2d058224f322430b4ec588e7
Showing with 4 additions and 7 deletions.
  1. +2 −5 Makefile
  2. +1 −1 lib/Makefile
  3. +1 −1 spectrwm.c
@@ -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)\"
@@ -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

@@ -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

@@ -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

0 comments on commit a0c595f

Please sign in to comment.
You can’t perform that action at this time.