Commit Graph

9 Commits

Author SHA1 Message Date
Takashi Kokubun
d324c4a73b
cargo init 2021-12-11 23:27:29 -08:00
Takashi Kokubun
603be104f4
Full scratch 2021-12-11 23:16:09 -08:00
Seiei Miyagi
e9bbb31bc4
Fix #32 introduced in 1e2d641 We need the constants from both keysymdef.h and X.h 2018-09-15 13:05:52 +09:00
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.
2018-09-13 09:39:37 +09:00
gosho-kazuya
beefa31976 add delay before fetch_active_window 2017-01-15 17:04:13 +00:00
Takashi Kokubun
6e8e1f2128 Rename xkremap to xremap 2017-01-09 15:18:22 +09:00
Takashi Kokubun
5a78ce246c Create Makefile to generate xkremap binary 2016-11-29 00:15:10 +09:00
Takashi Kokubun
0166329028 Compile mruby 2016-11-28 23:48:51 +09:00
Takashi Kokubun
f901083c72 Add basic build system 2016-11-26 08:24:50 +09:00