History

wayland: ensure we grab the drawlock for writes to the frame buffer.

Jacob Moody committed 5 years ago

Commit 4d482df1 parent 375b0041 file · +5 −2Browse files

Unified · Split

gui-wl/wl-screen.c+5−2
@@ -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
169void170void
170setcursor(void)171setcursor(void)
171{172{
172 wldrawcursor(snarfwin, &cursor);173 qlock(&drawlock);
174 wldrawcursor(snarfwin, &arrow);
175 qunlock(&drawlock);
173}176}
174 177
175void178void

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t