From 3c643c4f48179643cdb7d486aa19b3c2bd76176f Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Fri, 17 Aug 2012 17:01:05 +0200 Subject: adding new translucent option, release 1.2 --- main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index d6b9f31..9467b42 100644 --- a/main.c +++ b/main.c @@ -40,6 +40,7 @@ XIC x_ic; char * opt_display = NULL; gint64 opt_xephyr = 0; gboolean opt_verbose = FALSE; +gboolean opt_translucent = FALSE; static GMainLoop *main_loop; static MeegoImConnector *m_connector; @@ -49,15 +50,16 @@ static int x_watch; static GOptionEntry entries[] = { - { "display", 'd', 0, G_OPTION_ARG_STRING, &opt_display, "X11 display to use", "DISPLAY" }, - { "xephyr", 'x', 0, G_OPTION_ARG_INT64, &opt_xephyr, "Xephyr mode", "XEPHYR_WINDOW_ID" }, - { "verbose", 'v', 0, G_OPTION_ARG_NONE, &opt_verbose, "Verbose mode", NULL }, - { NULL } + { "display", 'd', 0, G_OPTION_ARG_STRING, &opt_display, "X11 display to use", "DISPLAY" }, + { "xephyr", 'x', 0, G_OPTION_ARG_INT64, &opt_xephyr, "Xephyr mode", "XEPHYR_WINDOW_ID" }, + { "verbose", 'v', 0, G_OPTION_ARG_NONE, &opt_verbose, "Verbose mode", NULL }, + { "translucent", 't', 0, G_OPTION_ARG_NONE, &opt_translucent, "Translucent keyboard", NULL }, + { NULL } }; static void log_func(const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer user_data) { - gboolean def_log_domain = strcmp(log_domain, G_LOG_DOMAIN) == 0; + gboolean def_log_domain = !log_domain || strcmp(log_domain, G_LOG_DOMAIN) == 0; if (log_level & G_LOG_LEVEL_DEBUG) { // A debug message if (opt_verbose) { -- cgit v1.2.3