int debug_mode;
int overwrite_content;
int com_core_thread;
+ int use_xmonitor;
};
extern struct conf g_conf;
#define CR 13
#define LF 10
+#define USE_XMONITOR g_conf.use_xmonitor
#define USE_SW_BACKEND g_conf.use_sw_backend
#define PROVIDER_METHOD g_conf.provider_method
#define DEBUG_MODE g_conf.debug_mode
.debug_mode = 0,
.overwrite_content = 0,
.com_core_thread = 1,
+ .use_xmonitor = 1,
};
static void conf_update_size(void)
ecore_x_window_size_get(0, &g_conf.width, &g_conf.height);
}
+static void use_xmonitor(char *buffer)
+{
+ g_conf.use_xmonitor = !strcasecmp(buffer, "true");
+ DbgPrint("Use xmonitor: %d\n", g_conf.use_xmonitor);
+}
+
static void use_sw_backend_handler(char *buffer)
{
g_conf.use_sw_backend = !strcasecmp(buffer, "true");
{
if (sscanf(buffer, "%lf", &g_conf.slave_ttl) != 1)
ErrPrint("Failed to parse the slave_ttl\n");
- DbgPrint("Slave TTL: %s\n", g_conf.slave_ttl);
+ DbgPrint("Slave TTL: %lf\n", g_conf.slave_ttl);
}
static void slave_activate_time_handler(char *buffer)
.handler = use_sw_backend_handler,
},
{
+ .name = "use_xmonitor",
+ .handler = use_xmonitor,
+ },
+ {
.name = "provider_method",
.handler = provider_method_handler,
},
#include <malloc.h>
#include <mcheck.h>
+#include <Elementary.h>
+
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
ret = conf_loader();
DbgPrint("Configureation manager is initiated: %d\n", ret);
+ DbgPrint("Scale factor: %lf\n", elm_config_scale_get());
if (COM_CORE_THREAD)
setenv("PROVIDER_COM_CORE_THREAD", "true", 0);