if no e_demo ec, give focus to the topmost ec 36/45636/4
authorBoram Park <boram1288.park@samsung.com>
Mon, 10 Aug 2015 05:08:41 +0000 (14:08 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Mon, 10 Aug 2015 05:48:53 +0000 (22:48 -0700)
Change-Id: I044bb1ff9bd630ca7febec5e9ca855ac3272e87c

src/bin/e_client.c

index 4b5f419fbb395e2285ea3be96846104488b84df5..e01640f0091a6186ae061963c42a81a1c9802fcf 100644 (file)
@@ -2469,7 +2469,7 @@ _e_client_visibility_zone_calculate(E_Zone *zone)
            (!ec->focused) && (ec == top_visible_ec) &&
            (!ec->visibility.obscured) &&
            ((ec->icccm.accepts_focus) || (ec->icccm.take_focus)) &&
-           (demo_ec && !demo_ec->focused))
+           (!demo_ec || (demo_ec && !demo_ec->focused)))
         {
            e_client_focused_set(ec);
            evas_object_focus_set(ec->frame, 1);