summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-27 12:56:52 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-27 12:56:52 -0400
commit77455ffbf2e883d45893c881177d5641f040a826 (patch)
tree8c1222c82bb42054d31d62eafbd363b5e8544273
parentb4f92c85faee4d4bca538f9bf1ad9acdaa8ae2d3 (diff)
wip
-rwxr-xr-xscripts/rotation3.sh14
-rw-r--r--src/Makefile.mk1
-rw-r--r--src/e_mod_main.c1
-rw-r--r--src/e_mod_main.h1
-rw-r--r--src/rotation3.c28
5 files changed, 45 insertions, 0 deletions
diff --git a/scripts/rotation3.sh b/scripts/rotation3.sh
new file mode 100755
index 0000000..3142955
--- /dev/null
+++ b/scripts/rotation3.sh
@@ -0,0 +1,14 @@
1#!/bin/bash -e
2
3export T=$(basename $0 .sh)
4source $(dirname $0)/env
5export PS1='$ '
6if [ -n "$DB" ] ; then
7 DB="$(eval echo $DB)"
8fi
9
10if [ -z "$SCREENS" ] ; then
11 SCREENS="-fake-xinerama-screen 1024x768+0+0"
12fi
13
14$DB enlightenment -i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it $SCREENS
diff --git a/src/Makefile.mk b/src/Makefile.mk
index 133a84b..28dc179 100644
--- a/src/Makefile.mk
+++ b/src/Makefile.mk
@@ -45,6 +45,7 @@ src/noshelf_maximize_fullscreen3.c \
45src/noshelf_maximize_fullscreen4.c \ 45src/noshelf_maximize_fullscreen4.c \
46src/rotation.c \ 46src/rotation.c \
47src/rotation2.c \ 47src/rotation2.c \
48src/rotation3.c \
48src/session_recovery.c \ 49src/session_recovery.c \
49src/session_recovery_fullscreen.c \ 50src/session_recovery_fullscreen.c \
50src/session_recovery_maximize.c \ 51src/session_recovery_maximize.c \
diff --git a/src/e_mod_main.c b/src/e_mod_main.c
index 577b234..0d0b823 100644
--- a/src/e_mod_main.c
+++ b/src/e_mod_main.c
@@ -497,6 +497,7 @@ tests_start()
497 RUN_TEST(noshelf_maximize_fullscreen4); 497 RUN_TEST(noshelf_maximize_fullscreen4);
498 RUN_TEST(rotation); 498 RUN_TEST(rotation);
499 RUN_TEST(rotation2); 499 RUN_TEST(rotation2);
500 RUN_TEST(rotation3);
500 RUN_TEST(session_recovery); 501 RUN_TEST(session_recovery);
501 RUN_TEST(session_recovery_fullscreen); 502 RUN_TEST(session_recovery_fullscreen);
502 RUN_TEST(session_recovery_maximize); 503 RUN_TEST(session_recovery_maximize);
diff --git a/src/e_mod_main.h b/src/e_mod_main.h
index aef6e8c..ea9e80a 100644
--- a/src/e_mod_main.h
+++ b/src/e_mod_main.h
@@ -65,6 +65,7 @@ TEST_FN(noshelf_maximize_fullscreen3);
65TEST_FN(noshelf_maximize_fullscreen4); 65TEST_FN(noshelf_maximize_fullscreen4);
66TEST_FN(rotation); 66TEST_FN(rotation);
67TEST_FN(rotation2); 67TEST_FN(rotation2);
68TEST_FN(rotation3);
68TEST_FN(session_recovery); 69TEST_FN(session_recovery);
69TEST_FN(session_recovery_fullscreen); 70TEST_FN(session_recovery_fullscreen);
70TEST_FN(session_recovery_maximize); 71TEST_FN(session_recovery_maximize);
diff --git a/src/rotation3.c b/src/rotation3.c
new file mode 100644
index 0000000..bd8ef4c
--- /dev/null
+++ b/src/rotation3.c
@@ -0,0 +1,28 @@
1#include "e_mod_main.h"
2
3#include "e_mod_main.h"
4
5static void
6launched()
7{
8 timed_shot_quit(0.5);
9}
10
11static Eina_Bool
12next()
13{
14 e_env_set("SHELL", "/bin/sh");
15 launch("gnome-terminal", launched);
16 return EINA_FALSE;
17}
18
19TEST_FN(rotation)
20{
21 E_Screen *scr;
22 const Eina_List *l;
23
24 EINA_LIST_FOREACH(e_xinerama_screens_get(), l, scr)
25 scr->rotation = 90;
26 ecore_event_add(E_EVENT_RANDR_CHANGE, NULL, NULL, NULL);
27 ecore_timer_add(0.5, next, NULL);
28}