summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-27 12:47:56 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-27 12:47:56 -0400
commite5cb4aa2babe28866c241cc8d5a4b33bce615eff (patch)
tree4b3b178462c081010d23383bd8bd4e23d61e5165
parent199f8cc631aef7fcd372b046ff53c456c05f7bf3 (diff)
wip
-rwxr-xr-xscripts/rotation2.sh14
-rw-r--r--src/rotation2.c19
2 files changed, 33 insertions, 0 deletions
diff --git a/scripts/rotation2.sh b/scripts/rotation2.sh
new file mode 100755
index 0000000..3142955
--- /dev/null
+++ b/scripts/rotation2.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/rotation2.c b/src/rotation2.c
new file mode 100644
index 0000000..85e472f
--- /dev/null
+++ b/src/rotation2.c
@@ -0,0 +1,19 @@
1#include "e_mod_main.h"
2
3static Eina_Bool
4next()
5{
6 TEST(terminology)();
7 return EINA_FALSE;
8}
9
10TEST_FN(rotation)
11{
12 E_Screen *scr;
13 const Eina_List *l;
14
15 EINA_LIST_FOREACH(e_xinerama_screens_get(), l, scr)
16 scr->rotation = 90;
17 ecore_event_add(E_EVENT_RANDR_CHANGE, NULL, NULL);
18 ecore_timer_add(0.5, next, NULL);
19}