Commit Graph

9 Commits (master)

Author SHA1 Message Date
Takashi Kokubun d324c4a73b
cargo init 2 years ago
Takashi Kokubun 603be104f4
Full scratch 2 years ago
Seiei Miyagi e9bbb31bc4
Fix #32 introduced in 1e2d641 We need the constants from both keysymdef.h and X.h 6 years ago
Seiei Miyagi 6ceda05568
Generate X11 constants from headers at build-time.
The X11 constants are different between versions.

For example, Debian doesn't have XF86XK_WWAN
https://salsa.debian.org/xorg-team/proto/x11proto-core/blob/debian-unstable/XF86keysym.h

But Arch Linux does.
https://www.archlinux.org/packages/extra/any/xorgproto/

I've got following error on Debian stretch

```
 /home/sei/src/github.com/k0kubun/xremap/src/x11_constants.c:2710:20: error: ‘XF86XK_WWAN’ undeclared (first use in this function)
    define_x11_const(XF86XK_WWAN);
```

To avoid macro undeclared error, wrap the `define_x11_const` with #ifdef

```
#ifdef XF86XK_WWAN
define_x11_const(XF86XK_WWAN)
#endif
```

Or generate code at build-time.
6 years ago
gosho-kazuya beefa31976 add delay before fetch_active_window 7 years ago
Takashi Kokubun 6e8e1f2128 Rename xkremap to xremap 7 years ago
Takashi Kokubun 5a78ce246c Create Makefile to generate xkremap binary 8 years ago
Takashi Kokubun 0166329028 Compile mruby 8 years ago
Takashi Kokubun f901083c72 Add basic build system 8 years ago