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