about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-15 07:31:42 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-15 07:31:42 +0200
commitb6ad663f87b195b1494798030f826cb2fbc71a23 (patch)
treeff6cc4878eba5d2abaf0f10d318effd99acb16ce /event.c
parentee31e38dc75832a66cb0fc01bcf2f419ac96a20b (diff)
downloaddwm-b6ad663f87b195b1494798030f826cb2fbc71a23.tar.gz
changed main event loop
Diffstat (limited to 'event.c')
-rw-r--r--event.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/event.c b/event.c
index c8a87c1..5209be3 100644
--- a/event.c
+++ b/event.c
@@ -384,3 +384,16 @@ grabkeys()
 				GrabModeAsync, GrabModeAsync);
 	}
 }
+
+void
+procevent()
+{
+	XEvent ev;
+
+	while(XPending(dpy)) {
+		XNextEvent(dpy, &ev);
+		if(handler[ev.type])
+			(handler[ev.type])(&ev); /* call handler */
+	}
+}
+
22:05:56 -0800 committer Kartik K. Agaram <vc@akkartik.com> 2014-11-24 22:11:46 -0800 319 - ack, forgot to handle blocks when tangling' href='/akkartik/mu/commit/tangle.mu?h=hlt&id=4feb3daf812a15a2545374947701387657c90051'>4feb3daf ^
0ca35d02 ^
d4b4d018 ^
7d2c2d55 ^
4b62edd8 ^
7d2c2d55 ^
4feb3daf ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35