Unified · Split
| @@ -114,11 +114,12 @@ wlattach(char *label) · 113 unmodified lines | ||
| 114 | 114 | gscreen->r = r; |
| 115 | 115 | rectclip(&(gscreen->clipr), gscreen->r); |
| 116 | 116 | |
| 117 | − wldrawcursor(wl, &arrow); | |
| 118 | 117 | wl->runing = 1; |
| 119 | 118 | kproc("wldispatch", dispatchproc, wl); |
| 120 | 119 | terminit(); |
| 120 | + qlock(&drawlock); | |
| 121 | 121 | wlflush(wl); |
| 122 | + qunlock(&drawlock); | |
| 122 | 123 | return wl; |
| 123 | 124 | } |
| 124 | 125 | |
| @@ -169,7 +170,9 @@ screensize(Rectangle r, ulong chan) · 44 unmodified lines | ||
| 169 | 170 | void |
| 170 | 171 | setcursor(void) |
| 171 | 172 | { |
| 172 | − wldrawcursor(snarfwin, &cursor); | |
| 173 | + qlock(&drawlock); | |
| 174 | + wldrawcursor(snarfwin, &arrow); | |
| 175 | + qunlock(&drawlock); | |
| 173 | 176 | } |
| 174 | 177 | |
| 175 | 178 | void |