diff options
author | Peter Osterlund <petero2@telia.com> | 2003-05-02 01:12:03 +0200 |
---|---|---|
committer | Peter Osterlund <petero2@telia.com> | 2006-04-09 04:00:53 +0200 |
commit | 826b2136b226d29017271b7c098179f04c6c51b3 (patch) | |
tree | f6e85b36622cdd1d87226654f2d7f38f5add797e /synclient.c | |
parent | 5b1ecfe525fca8deea1b5d742a929d7f900b60cc (diff) |
Build improvements.
* Build synclient by default.
* Made it possible to build synclient even if an X source tree is not
available.
* Added Makefile dependencies so that things get recompiled when a
header file is changed.
* synclient.c now includes synaptics.h instead of duplicating the
shared memory segment definitions.
Diffstat (limited to 'synclient.c')
-rw-r--r-- | synclient.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/synclient.c b/synclient.c index ec45b88..327b957 100644 --- a/synclient.c +++ b/synclient.c @@ -5,13 +5,8 @@ #include <sys/shm.h> #include <unistd.h> -#define SHM_SYNAPTICS 23947 -typedef struct _SynapticsSHM { - int x, y; - int z; /* pressure value */ - int w; /* finger width value */ - int left, right, up, down; /* left/right/up/down buttons */ -} SynapticsSHM; +#include <X11/Xdefs.h> +#include "synaptics.h" static int is_equal(SynapticsSHM* s1, SynapticsSHM* s2) { @@ -25,7 +20,8 @@ static int is_equal(SynapticsSHM* s1, SynapticsSHM* s2) (s1->down == s2->down)); } -int main() { +int main() +{ SynapticsSHM *synshm; int shmid; SynapticsSHM old; |