Commit 3ff2fb6
committed
clipmenud: Prevent infinite loop in signal handler
When handling an enable/disable signal, clipmenud could enter an
infinite loop if another X event was already in the queue. The function
to get the server time would repeatedly read and put back the same event
at the head of the queue (er, whoops!).
Instead use XIfEvent, which doesn't bodge the event queue.
Fixes #255.1 parent 087cf07 commit 3ff2fb6
File tree
1 file changed
+9
-10
lines changed- src
1 file changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
0 commit comments