devdraw: avoid deadlock in x11 resize

Fixes #347.
This commit is contained in:
Russ Cox 2020-01-15 11:59:45 -05:00 committed by Russ Cox
parent 4241cae2a1
commit 0be57355f9
2 changed files with 3 additions and 0 deletions

View file

@ -17,6 +17,7 @@
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#ifdef SHOWEVENT
#include <stdio.h>
#include "../rio/showevent/ShowEvent.c"
#endif

View file

@ -1042,7 +1042,9 @@ _xreplacescreenimage(Client *client)
w->nextscreenpm = pixmap;
w->screenr = r;
client->mouserect = r;
xunlock();
gfx_replacescreenimage(client, m);
xlock();
return 1;
}