diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/devdraw/x11-inc.h | 1 | ||||
-rw-r--r-- | src/cmd/devdraw/x11-screen.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/devdraw/x11-inc.h b/src/cmd/devdraw/x11-inc.h index dca3ebcd..ab4c2505 100644 --- a/src/cmd/devdraw/x11-inc.h +++ b/src/cmd/devdraw/x11-inc.h @@ -17,6 +17,7 @@ #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> #ifdef SHOWEVENT +#include <stdio.h> #include "../rio/showevent/ShowEvent.c" #endif diff --git a/src/cmd/devdraw/x11-screen.c b/src/cmd/devdraw/x11-screen.c index d01e8496..62f49f2f 100644 --- a/src/cmd/devdraw/x11-screen.c +++ b/src/cmd/devdraw/x11-screen.c @@ -1042,7 +1042,9 @@ _xreplacescreenimage(Client *client) w->nextscreenpm = pixmap; w->screenr = r; client->mouserect = r; + xunlock(); gfx_replacescreenimage(client, m); + xlock(); return 1; } |