summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-07-05 19:19:21 +0000
committerMichael BOUCHAUD <michael.bouchaud@gmail.com>2012-07-05 19:19:21 +0000
commit8d33dadf56dbb974def0f7a2e17732e241a862f1 (patch)
tree1d1a3c0216180e27e992d7259400f41101ba1e3b /src/bin
parentd6cfae5cb8e0af50cbb37396da40be104bf6eff0 (diff)
terminology: add an option to be run without a wm
SVN revision: 73376
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 51730ac..5187a8c 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -230,6 +230,8 @@ static const Ecore_Getopt options = {
230 "Become an override-redirect window."), 230 "Become an override-redirect window."),
231 ECORE_GETOPT_STORE_TRUE('M', "maximized", 231 ECORE_GETOPT_STORE_TRUE('M', "maximized",
232 "Become maximized from the start."), 232 "Become maximized from the start."),
233 ECORE_GETOPT_STORE_TRUE('W', "nowm",
234 "Terminology is run without a wm."),
233 ECORE_GETOPT_VERSION('V', "version"), 235 ECORE_GETOPT_VERSION('V', "version"),
234 ECORE_GETOPT_COPYRIGHT('C', "copyright"), 236 ECORE_GETOPT_COPYRIGHT('C', "copyright"),
235 ECORE_GETOPT_LICENSE('L', "license"), 237 ECORE_GETOPT_LICENSE('L', "license"),
@@ -256,6 +258,7 @@ elm_main(int argc, char **argv)
256 Eina_Bool borderless = EINA_FALSE; 258 Eina_Bool borderless = EINA_FALSE;
257 Eina_Bool override = EINA_FALSE; 259 Eina_Bool override = EINA_FALSE;
258 Eina_Bool maximized = EINA_FALSE; 260 Eina_Bool maximized = EINA_FALSE;
261 Eina_Bool nowm = EINA_FALSE;
259 Eina_Bool quit_option = EINA_FALSE; 262 Eina_Bool quit_option = EINA_FALSE;
260 Ecore_Getopt_Value values[] = { 263 Ecore_Getopt_Value values[] = {
261 ECORE_GETOPT_VALUE_STR(cmd), 264 ECORE_GETOPT_VALUE_STR(cmd),
@@ -273,6 +276,7 @@ elm_main(int argc, char **argv)
273 ECORE_GETOPT_VALUE_BOOL(borderless), 276 ECORE_GETOPT_VALUE_BOOL(borderless),
274 ECORE_GETOPT_VALUE_BOOL(override), 277 ECORE_GETOPT_VALUE_BOOL(override),
275 ECORE_GETOPT_VALUE_BOOL(maximized), 278 ECORE_GETOPT_VALUE_BOOL(maximized),
279 ECORE_GETOPT_VALUE_BOOL(nowm),
276 ECORE_GETOPT_VALUE_BOOL(quit_option), 280 ECORE_GETOPT_VALUE_BOOL(quit_option),
277 ECORE_GETOPT_VALUE_BOOL(quit_option), 281 ECORE_GETOPT_VALUE_BOOL(quit_option),
278 ECORE_GETOPT_VALUE_BOOL(quit_option), 282 ECORE_GETOPT_VALUE_BOOL(quit_option),
@@ -483,6 +487,9 @@ elm_main(int argc, char **argv)
483 _cb_size_hint(win, evas_object_evas_get(win), term, NULL); 487 _cb_size_hint(win, evas_object_evas_get(win), term, NULL);
484 488
485 evas_object_show(win); 489 evas_object_show(win);
490 if (nowm)
491 ecore_evas_focus_set(
492 ecore_evas_ecore_evas_get(evas_object_evas_get(win)), 1);
486 493
487 elm_run(); 494 elm_run();
488 end: 495 end: