Explorar el Código

Making st not activate the cursor in case of Mod + k in dwm.

Thanks Jens Nyberg <jens.nyberg@gmail.com>!
Christoph Lohmann hace 12 años
padre
commit
eeffbe11ab
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      st.c

+ 5 - 0
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;