summaryrefslogtreecommitdiffstats
path: root/x11vnc/gui.c
diff options
context:
space:
mode:
authorrunge <runge>2006-12-28 20:00:08 +0000
committerrunge <runge>2006-12-28 20:00:08 +0000
commit5c9ba4bb035255956dd176b285df3a81bafa02e3 (patch)
tree29bfb0544fca31db024619a612d09b3a5e0132c2 /x11vnc/gui.c
parentf9baaf1ee49e7889808b1f058a5f348a9cd5f027 (diff)
downloadlibtdevnc-5c9ba4bb035255956dd176b285df3a81bafa02e3.tar.gz
libtdevnc-5c9ba4bb035255956dd176b285df3a81bafa02e3.zip
still more compiler warnings; ssvnc 1.0.9 sync.
Diffstat (limited to 'x11vnc/gui.c')
-rw-r--r--x11vnc/gui.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/x11vnc/gui.c b/x11vnc/gui.c
index 28f4109..d6c9fd6 100644
--- a/x11vnc/gui.c
+++ b/x11vnc/gui.c
@@ -43,12 +43,13 @@ char *get_gui_code(void) {
}
static Window tweak_tk_window_id(Window win) {
- char *name = NULL;
- Window parent, new;
-
#if NO_X11
+ if (!win) {}
return None;
#else
+ char *name = NULL;
+ Window parent, new;
+
/* hack for tk, does not report outermost window */
new = win;
parent = parent_window(win, &name);
@@ -67,6 +68,11 @@ static Window tweak_tk_window_id(Window win) {
}
int tray_embed(Window iconwin, int remove) {
+#if NO_X11
+ RAWFB_RET(0)
+ if (!iconwin || !remove) {}
+ return 0;
+#else
XEvent ev;
XErrorHandler old_handler;
Window manager;
@@ -77,9 +83,6 @@ 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)) {
@@ -164,14 +167,16 @@ int tray_embed(Window iconwin, int remove) {
}
static int tray_manager_running(Display *d, Window *manager) {
+#if NO_X11
+ RAWFB_RET(0)
+ if (!d || !manager) {}
+ return 0;
+#else
char tray_string[100];
Atom tray_manager;
Window tray_win;
RAWFB_RET(0)
-#if NO_X11
- return 0;
-#else
if (manager) {
*manager = None;