瀏覽代碼

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

Thanks Jens Nyberg <jens.nyberg@gmail.com>!
Christoph Lohmann 12 年之前
父節點
當前提交
eeffbe11ab
共有 1 個文件被更改,包括 5 次插入0 次删除
  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;