summaryrefslogtreecommitdiffstats
path: root/x11vnc/gui.c
diff options
context:
space:
mode:
authorrunge <runge>2006-07-18 00:40:00 +0000
committerrunge <runge>2006-07-18 00:40:00 +0000
commit901729e3e04d13d0d7e701c6a6c014f4adc42ce6 (patch)
tree5ccae39a0740461dde0b2875d3b1e8398b6e1357 /x11vnc/gui.c
parent6e2fa292297af38a12ab6a0bac1a2873b2fb289c (diff)
downloadlibtdevnc-901729e3e04d13d0d7e701c6a6c014f4adc42ce6.tar.gz
libtdevnc-901729e3e04d13d0d7e701c6a6c014f4adc42ce6.zip
x11vnc: enable --without-x builds for -rawfb only binaries.
Diffstat (limited to 'x11vnc/gui.c')
-rw-r--r--x11vnc/gui.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11vnc/gui.c b/x11vnc/gui.c
index 69ce0ed..a02bd52 100644
--- a/x11vnc/gui.c
+++ b/x11vnc/gui.c
@@ -46,6 +46,9 @@ static Window tweak_tk_window_id(Window win) {
char *name = NULL;
Window parent, new;
+#if NO_X11
+ return None;
+#else
/* hack for tk, does not report outermost window */
new = win;
parent = parent_window(win, &name);
@@ -60,6 +63,7 @@ static Window tweak_tk_window_id(Window win) {
XFree(name);
}
return new;
+#endif /* NO_X11 */
}
int tray_embed(Window iconwin, int remove) {
@@ -73,6 +77,9 @@ int tray_embed(Window iconwin, int remove) {
long data = 0;
RAWFB_RET(0)
+#if NO_X11
+ return 0;
+#else
if (remove) {
if (!valid_window(iconwin, &attr, 1)) {
@@ -153,6 +160,7 @@ int tray_embed(Window iconwin, int remove) {
XSetErrorHandler(old_handler);
trapped_xerror = 0;
return 1;
+#endif /* NO_X11 */
}
static int tray_manager_running(Display *d, Window *manager) {
@@ -161,6 +169,9 @@ static int tray_manager_running(Display *d, Window *manager) {
Window tray_win;
RAWFB_RET(0)
+#if NO_X11
+ return 0;
+#else
if (manager) {
*manager = None;
@@ -182,6 +193,7 @@ static int tray_manager_running(Display *d, Window *manager) {
} else {
return 1;
}
+#endif /* NO_X11 */
}
static char *gui_geometry = NULL;