summaryrefslogtreecommitdiffstats
path: root/x11vnc/xdamage.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/xdamage.c')
-rw-r--r--x11vnc/xdamage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/x11vnc/xdamage.c b/x11vnc/xdamage.c
index 5b13d05..0c3e5d5 100644
--- a/x11vnc/xdamage.c
+++ b/x11vnc/xdamage.c
@@ -3,6 +3,7 @@
#include "x11vnc.h"
#include "xwrappers.h"
#include "userinput.h"
+#include "unixpw.h"
#if LIBVNCSERVER_HAVE_LIBXDAMAGE
Damage xdamage = 0;
@@ -177,6 +178,7 @@ void clear_xdamage_mark_region(sraRegionPtr markregion, int flush) {
if (! xdamage_base_event_type) {
return;
}
+ if (unixpw_in_progress) return;
X_LOCK;
if (flush) {