Xinqi Bao's Git
projects
/
st.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
8a9475a
)
Making st not activate the cursor in case of Mod + k in dwm.
author
Christoph Lohmann <
[email protected]
>
Mon, 11 Feb 2013 21:20:16 +0000
(22:20 +0100)
committer
Christoph Lohmann <
[email protected]
>
Mon, 11 Feb 2013 21:20:16 +0000
(22:20 +0100)
Thanks Jens Nyberg <
[email protected]
>!
st.c
diff
|
blob
|
history
diff --git
a/st.c
b/st.c
index
08cda34
..
2c803fa
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-2986,6
+2986,11
@@
xseturgency(int add) {
void
focus(XEvent *ev) {
+ XFocusChangeEvent *e = &ev->xfocus;
+
+ if(e->mode == NotifyGrab)
+ return;
+
if(ev->type == FocusIn) {
XSetICFocus(xw.xic);
xw.state |= WIN_FOCUSED;