Commit Graph

267 Commits

Author SHA1 Message Date
Takashi Kokubun
fb61edd7c6
Merge pull request #25 from lostdj/patch-1
Fix event handling lag
2018-01-04 19:36:08 +09:00
yo_waka
0a9372fc96 guard segfault 2018-01-04 01:16:03 +09:00
Timofey Lagutin
10ad0bc553
Fix event handling lag
On KDE 4 switching between virtual desktops results in a flood of `PropertyNotify` event: cef2ca36ee/tools/xremap/main.c (L56)

Coupled with the specified delay of 100ms in this file, and the fact that `KeyPress` event is handled last, it results in a 1+ second lag.

I don't know whether there's a justification for the existing, specific 100ms delay, but 1ms seem to be ok for me.
2018-01-03 16:58:48 +03:00
Takashi Kokubun
f6918d8dde Explicitly specify Type=Simple 2017-08-15 10:07:26 -07:00
Takashi Kokubun
31491dd055 Drop unintentional setting from systemd example 2017-08-15 10:06:54 -07:00
Takashi Kokubun
e1273c8158 Fix WantedBy to default.target
It should be so, if you use systemctl --user.
2017-07-31 01:18:05 +09:00
Takashi Kokubun
86399b3b12 Fix DISPLAY to be xenial's default 2017-07-28 22:26:07 +09:00
Takashi Kokubun
cef2ca36ee Merge pull request #21 from hanachin/debug
Better error logging
2017-06-18 23:53:12 +09:00
Seiei Miyagi
d0cc032922
Better logging
The error codes is defined in X11/X.h,
and request code is defined in X11/Xproto.h
2017-06-17 03:14:40 +09:00
Seiei Miyagi
f1ece680c2
Output ClientMessage to help debug
In my environment, detected unexpected event is only ClientMessage.

```
% journalctl | grep 'unexpected event detected' | cut -d! -f2 | sort | uniq
 (33)
```
2017-06-17 02:28:57 +09:00
Takashi Kokubun
64eef405a6 Merge pull request #19 from hanachin/follow_parent
Make fetch_window_class look up the parent window if get WM_CLASS failed
2017-05-22 08:39:43 +09:00
Seiei Miyagi
a9d8c0c7e7
Avoid goto loop 2017-05-21 21:28:38 +09:00
Seiei Miyagi
df6194880f
Make fetch_window_class look up the parent window if get WM_CLASS failed
Some applications have the window without name, such as Firefox.

c.f.
> XGetInputFocus() returns an unnamed child window
> that every instance of Firefox has.
https://burrows.svbtle.com/universal-copy-paste-in-linux
2017-05-06 02:47:32 +09:00
Takashi Kokubun
2d3eefbf1e Merge pull request #17 from acro5piano/master
Fix cannot remap_keys when using "window focus follows the mouse"
2017-01-15 19:53:58 +09:00
gosho-kazuya
beefa31976 add delay before fetch_active_window 2017-01-15 17:04:13 +00:00
Takashi Kokubun
a1b6e10aa6 Update build information
I migrated from Arch to Ubuntu. Dropping Arch support for now.
2017-01-09 15:24:01 +09:00
Takashi Kokubun
6e8e1f2128 Rename xkremap to xremap 2017-01-09 15:18:22 +09:00
Takashi Kokubun
ea34e7504e Improve window switcher example 2017-01-09 02:10:56 +09:00
Takashi Kokubun
0b5d09f5ab Version 0.0.3 2017-01-04 00:10:05 +09:00
Takashi Kokubun
a393665b19 Add mruby-env to write config easily 2017-01-04 00:07:42 +09:00
Takashi Kokubun
668215b43f Don't kill children 2017-01-03 23:30:38 +09:00
Takashi Kokubun
2da50e2d68 Actually bison is used to build mruby too 2016-12-03 11:49:32 +09:00
Takashi Kokubun
a3b99f1d0c Fix typo 2016-12-03 09:52:37 +09:00
Takashi Kokubun
1cc0ec2b3e Add CHANGELOG.md 2016-12-03 09:51:50 +09:00
Takashi Kokubun
2881a0cee9 Add include_config directive 2016-12-03 09:49:04 +09:00
Takashi Kokubun
167276f901 Allow building xkremap on darwin 2016-12-03 08:56:31 +09:00
Takashi Kokubun
11459966c7 Tiny refactoring around cflags 2016-12-03 08:55:40 +09:00
Takashi Kokubun
0121b84436 Note about build dependency 2016-12-01 19:48:51 +09:00
Takashi Kokubun
47fbcb8863 Fix typo in systemd service example 2016-12-01 18:03:18 +09:00
Takashi Kokubun
05a94a99df Merge pull request #3 from yaa/support-modifier-super
Support Super (Win) modifier key
2016-12-01 13:59:54 +09:00
YAA
7c6531508b Support Super (Win) modifier key 2016-12-01 13:39:38 +09:00
Takashi Kokubun
d5ee4991c1 Merge pull request #1 from hanachin/patch-1
Fix typo
2016-11-30 10:44:12 +09:00
Seiei Miyagi
14c5eb6676 Update README.md 2016-11-30 10:35:48 +09:00
Takashi Kokubun
9347a6c34e Add documents for Arch Linux 2016-11-30 09:17:37 +09:00
Takashi Kokubun
4a506529fa Rejet flags properly 2016-11-30 08:57:31 +09:00
Takashi Kokubun
a35f91fa27 Add make install 2016-11-30 08:28:54 +09:00
Takashi Kokubun
f591242342 Write documentation 2016-11-30 08:24:54 +09:00
Takashi Kokubun
f939c9020c Add macos example 2016-11-30 07:37:39 +09:00
Takashi Kokubun
668c553006 Refactor window switcher example 2016-11-30 07:12:23 +09:00
Takashi Kokubun
9ff4723693 Better logging to detect window class 2016-11-30 06:52:41 +09:00
Takashi Kokubun
ea07739f6c Add shorthand for define_method 2016-11-30 06:45:47 +09:00
Takashi Kokubun
55e172e895 Allow shell command execution 2016-11-30 06:24:05 +09:00
Takashi Kokubun
cb4f9b5cc4 Add Alt-n to slack example 2016-11-30 05:57:22 +09:00
Takashi Kokubun
a158408826 Add emacs_like example 2016-11-30 05:56:26 +09:00
Takashi Kokubun
0b9600d1ea Experimentally add press and release DSL 2016-11-30 05:41:01 +09:00
Takashi Kokubun
a37f2924a2 Compile modifiers more flexibly 2016-11-30 05:13:00 +09:00
Takashi Kokubun
58fd901c76 Add example of emacs binding 2016-11-30 04:59:43 +09:00
Takashi Kokubun
de6aab92fd Implement window-specific remaps 2016-11-30 04:45:24 +09:00
Takashi Kokubun
adb27362c7 Complete basic remap implementation 2016-11-30 04:00:12 +09:00
Takashi Kokubun
a8de68d52a Define constants in X.h 2016-11-30 02:40:18 +09:00