From 83d52726a03536d10e946fe0e469a09d9da2542e Mon Sep 17 00:00:00 2001 From: Son Hyunjun Date: Sat, 7 Apr 2012 18:32:30 +0900 Subject: [PATCH] [Title] reject mouse touch in lcd off state. [Type] Bugfix [Module] Skin [Priority] Minor [CQ#] [Redmine#] [Problem] [Cause] [Solution] Change-Id: Ic09d0c3c0a4be007198679f6dee35df4ba187ae0 --- tizen/src/skin/maruskin_operation.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tizen/src/skin/maruskin_operation.c b/tizen/src/skin/maruskin_operation.c index 6a346d6..7321673 100644 --- a/tizen/src/skin/maruskin_operation.c +++ b/tizen/src/skin/maruskin_operation.c @@ -32,6 +32,7 @@ #include #include #include "maruskin_operation.h" +#include "hw/maru_brightness.h" #include "maru_sdl.h" #include "debug_ch.h" #include "sdb.h" @@ -68,6 +69,11 @@ void start_display( int handle_id, int lcd_size_width, int lcd_size_height, doub void do_mouse_event( int event_type, int x, int y, int z ) { + if( brightness_off ) { + TRACE( "reject mouse touch in lcd off : %d, x:%d, y:%d, z:%d\n", event_type, x, y, z ); + return; + } + TRACE( "mouse_event event_type:%d, x:%d, y:%d, z:%d\n", event_type, x, y, z ); if (get_emul_multi_touch_state()->multitouch_enable == 1) { -- 2.7.4