summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-21 13:01:07 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-21 13:01:07 -0400
commitdcbe50ec0a8a39fbe47543e48030040facd823ce (patch)
tree700fe657969be955fd3d9e547d8f78a369adf560
parent3c917303fa4333e563652df6fdb980f60fd0a788 (diff)
wip
-rw-r--r--src/shade.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shade.c b/src/shade.c
index 1cc479a..8554a6d 100644
--- a/src/shade.c
+++ b/src/shade.c
@@ -18,7 +18,7 @@ unshade()
18 if (!shaded) FAIL(); 18 if (!shaded) FAIL();
19 shaded = 0; 19 shaded = 0;
20 mouse_click_double(ec->x + (ec->w / 2), ec->y + 10, 1, 0); 20 mouse_click_double(ec->x + (ec->w / 2), ec->y + 10, 1, 0);
21 timed_shot_next(border_shade_speed + 0.1, shade); 21 timed_shot_next((height / border_shade_speed) + 0.1, shade);
22} 22}
23 23
24static void 24static void
@@ -31,9 +31,10 @@ static void
31launched() 31launched()
32{ 32{
33 E_Client *ec = e_client_focused_get(); 33 E_Client *ec = e_client_focused_get();
34 height = ec->client.h;
34 evas_object_smart_callback_add(ec->frame, "shade_done", shade_done, NULL); 35 evas_object_smart_callback_add(ec->frame, "shade_done", shade_done, NULL);
35 mouse_click_double(ec->x + (ec->w / 2), ec->y + 10, 1, 0); 36 mouse_click_double(ec->x + (ec->w / 2), ec->y + 10, 1, 0);
36 timed_shot_next(border_shade_speed + 0.1, unshade); 37 timed_shot_next((height / border_shade_speed) + 0.1, unshade);
37} 38}
38 39
39TEST_FN(shade) 40TEST_FN(shade)