http://openbox.org/wiki/Help:Bindings#C ... key_chains
If you leave Openbox in a key chain state for too long without completing it, Openbox will cancel the key chain and restore your normal key bindings.
If you leave Openbox in a key chain state for too long without completing it, Openbox will cancel the key chain and restore your normal key bindings.
感谢回复.vickycq 写了:openbox/keyboard.c 中搜索 /* 3 second timeout for chains */
在其后的段落中修改相应数值
科学之子 写了:怎么搜到的呢?
代码: 全选
[~/tmp/openbox] $ apt-get source openbox
[~/tmp/openbox] $ cd openbox-3.6.1/
[~/tmp/openbox/openbox-3.6.1] $ grep -Ri "chain" ./ | grep delay
[~/tmp/openbox/openbox-3.6.1] $ grep -Ri "chain" ./ | grep timeout
./openbox/keyboard.c:static gboolean chain_timeout(gpointer data)
./openbox/keyboard.c: /* 3 second timeout for chains */
./openbox/keyboard.c: 3000, chain_timeout, NULL,
[~/tmp/openbox/openbox-3.6.1] $
看样子是 hard-code 在源代码里的(未仔细研究)科学之子 写了:有无其他方法?
一般情况下,准备几个 chroot/虚拟机用于编译/打包,并不会占用很多时间科学之子 写了:修改了还要编译,要花不少时间
感谢回复vickycq 写了:科学之子 写了:怎么搜到的呢?代码: 全选
[~/tmp/openbox] $ apt-get source openbox [~/tmp/openbox] $ cd openbox-3.6.1/ [~/tmp/openbox/openbox-3.6.1] $ grep -Ri "chain" ./ | grep delay [~/tmp/openbox/openbox-3.6.1] $ grep -Ri "chain" ./ | grep timeout ./openbox/keyboard.c:static gboolean chain_timeout(gpointer data) ./openbox/keyboard.c: /* 3 second timeout for chains */ ./openbox/keyboard.c: 3000, chain_timeout, NULL, [~/tmp/openbox/openbox-3.6.1] $
看样子是 hard-code 在源代码里的(未仔细研究)科学之子 写了:有无其他方法?
一般情况下,准备几个 chroot/虚拟机用于编译/打包,并不会占用很多时间科学之子 写了:修改了还要编译,要花不少时间
可说明打算修改为几秒?我可以帮你打包(jessie amd64)。(此改法是否有效未知)