summaryrefslogtreecommitdiffstats
path: root/x11vnc/pm.c
diff options
context:
space:
mode:
authorrunge <[email protected]>2009-12-02 22:09:51 -0500
committerrunge <[email protected]>2009-12-02 22:09:51 -0500
commit00a9a0ea4d0f642b34b4423ea867099b52edf078 (patch)
treec9df2a624681358103c80e79847fd415cf3a8e2f /x11vnc/pm.c
parentf40b0111827677625d81b7b7fcd001ce285adf69 (diff)
downloadlibtdevnc-00a9a0ea4d0f642b34b4423ea867099b52edf078.tar.gz
libtdevnc-00a9a0ea4d0f642b34b4423ea867099b52edf078.zip
x11vnc: -appshare mode for sharing an application windows instead of the
entire desktop. map port + 5500 in reverse connect. Add id_cmd remote control functions for id (and other) windows. Allow zero port in SSL reverse connections. Adjust delays between multiple reverse connections; X11VNC_REVERSE_SLEEP_MAX env var. Add some missing mutex locks; add INPUT_LOCK and threads_drop_input. More safety in -threads mode for new framebuffer change. Fix some stderr leaking in -inetd mode.
Diffstat (limited to 'x11vnc/pm.c')
-rw-r--r--x11vnc/pm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/x11vnc/pm.c b/x11vnc/pm.c
index 6b67bec..5b31d84 100644
--- a/x11vnc/pm.c
+++ b/x11vnc/pm.c
@@ -49,6 +49,16 @@ static void check_dpms(void);
#endif
void check_pm(void) {
+ static int skip = -1;
+ if (skip < 0) {
+ skip = 0;
+ if (getenv("X11VNC_NO_CHECK_PM")) {
+ skip = 1;
+ }
+ }
+ if (skip) {
+ return;
+ }
check_fbpm();
check_dpms();
/* someday dpms activities? */