Commit 23ec84ef authored by Cedric Roux's avatar Cedric Roux

option -debug-gui to textlog

parent 629eb511
......@@ -189,7 +189,7 @@ void x_events(gui *_gui)
}
break;
#endif
default: WARN("TODO: X event type %d\n", ev.type); break;
default: if (gui_logd) WARN("TODO: X event type %d\n", ev.type); break;
}
}
......
......@@ -59,7 +59,8 @@ void usage(void)
" they will be processed in order\n"
" by default, all is off\n"
" -p <port> use given port (default %d)\n"
" -x GUI output\n",
" -x GUI output\n"
" -debug-gui active GUI debug logs\n",
DEFAULT_REMOTE_PORT
);
exit(1);
......@@ -102,6 +103,7 @@ static void *gui_thread(void *_g)
int main(int n, char **v)
{
extern int volatile gui_logd;
char *database_filename = NULL;
void *database;
int port = DEFAULT_REMOTE_PORT;
......@@ -138,6 +140,7 @@ int main(int n, char **v)
if (!strcmp(v[i], "-OFF"))
{ on_off_name[on_off_n]=NULL; on_off_action[on_off_n++]=0; continue; }
if (!strcmp(v[i], "-x")) { gui_mode = 1; continue; }
if (!strcmp(v[i], "-debug-gui")) { gui_logd = 1; continue; }
usage();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment