summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-17 17:01:05 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-17 17:01:05 +0200
commit3c643c4f48179643cdb7d486aa19b3c2bd76176f (patch)
tree4252fe59899ca6dffe39ab04ce5baafac9f55d1c /main.c
parentab14024d10c136a50348caf4faacfa655e57a9c1 (diff)
downloadxmimd-3c643c4f48179643cdb7d486aa19b3c2bd76176f.tar.gz
xmimd-3c643c4f48179643cdb7d486aa19b3c2bd76176f.zip
adding new translucent option, release 1.2
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 7 insertions, 5 deletions
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) {