Making st not activate the cursor in case of Mod + k in dwm.
Thanks Jens Nyberg <jens.nyberg@gmail.com>!
This commit is contained in:
parent
8a9475a0dd
commit
eeffbe11ab
1 changed files with 5 additions and 0 deletions
5
st.c
5
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;
|
||||
|
|
Loading…
Reference in a new issue