add processing KEY_END
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Wed, 27 Oct 2010 03:02:28 +0000 (12:02 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Wed, 27 Oct 2010 03:02:28 +0000 (12:02 +0900)
src/cbhm_main.c
src/scrcapture.c

index c8ea253..08f9ae7 100644 (file)
@@ -82,8 +82,7 @@ static Evas_Object* create_win(void *data, const char *name)
                elm_win_title_set(eo, name);
                elm_win_borderless_set(eo, EINA_TRUE);
                ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h);
-               ad->root_w = w;
-               ad->root_h = h;
+               ad->root_w = w; ad->root_h = h;
                evas_object_resize(eo, w, h);
        }
 
index f481543..59eb2b9 100644 (file)
@@ -2,6 +2,7 @@
 #include "cbhm_main.h"
 #include "xcnphandler.h"
 #include "scrcapture.h"
+#include "clipdrawer.h"
 
 #include <sys/ipc.h>
 #include <sys/shm.h>
@@ -136,6 +137,8 @@ static Eina_Bool scrcapture_keydown_cb(void *data, int type, void *event)
        {
                savedtime = 0.0;
                savedkey = 0;
+               if (!strcmp(ev->keyname, KEY_END))
+                       clipdrawer_lower_view(ad);
        }
 
        return ECORE_CALLBACK_PASS_ON;