e_focus: raise window if its mode is floating in e_focus_event_mouse_down() 49/88949/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 21 Sep 2016 07:26:36 +0000 (16:26 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 21 Sep 2016 07:26:36 +0000 (16:26 +0900)
Change-Id: I5601fb58b789e8734863400a8f3f1ff5b5946ffc

src/bin/e_focus.c

index a8a055f..3392ea2 100644 (file)
@@ -39,7 +39,12 @@ e_focus_event_mouse_down(E_Client *ec)
 {
    if (e_client_focus_policy_click(ec) ||
        e_config->always_click_to_focus)
-     evas_object_focus_set(ec->frame, 1);
+     {
+        evas_object_focus_set(ec->frame, 1);
+
+        if (ec->floating)
+          evas_object_raise(ec->frame);
+     }
    if (e_config->always_click_to_raise)
      {
         if (!ec->lock_user_stacking)