e_comp_wl_input: add checking show_cursor before setting cursor's visible TRUE 59/292859/1
authorduna.oh <duna.oh@samsung.com>
Wed, 10 May 2023 07:02:38 +0000 (16:02 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 16 May 2023 04:39:39 +0000 (13:39 +0900)
Change-Id: I7978a61c6f71cb976c0428c7927e63fe5423ee54

src/bin/e_comp_wl_input.c

index fd4e52e..0efa019 100644 (file)
@@ -95,7 +95,11 @@ _e_comp_wl_input_pointer_cb_cursor_set(struct wl_client *client, struct wl_resou
             break;
          }
      }
-   if (!got_mouse) return;
+   if (!got_mouse)
+     {
+        ELOGF("COMP", "Cursor Set. got_mouse: false", NULL);
+        return;
+     }
    if (!surface_resource)
      {
         e_pointer_object_set(e_comp->pointer, NULL, x, y);
@@ -108,14 +112,18 @@ _e_comp_wl_input_pointer_cb_cursor_set(struct wl_client *client, struct wl_resou
         ec->ignored = 0;
 
         ec->lock_focus_out = ec->layer_block = ec->visible = 1;
-        if (!e_config->show_cursor)  ec->override = 1;
+        if (!e_config->show_cursor)
+          {
+             ELOGF("COMP", "Cursor Set. show_cursor: false", ec);
+             ec->override = 1;
+          }
         ec->icccm.title = eina_stringshare_add("Cursor");
         e_client_window_role_set(ec, "wl_pointer-cursor");
         evas_object_pass_events_set(ec->frame, 1);
         e_client_focus_stack_set(eina_list_remove(e_client_focus_stack_get(), ec));
         /* wl_pointer-cursor surface is always alpha window */
         ec->argb = EINA_TRUE;
-        ELOGF("COMP", "Set argb:%d", ec, ec->argb);
+        ELOGF("COMP", "Cursor Set. argb:%d", ec, ec->argb);
         e_comp_object_alpha_set(ec->frame, EINA_TRUE);
         EC_CHANGED(ec);
 
@@ -142,7 +150,8 @@ _e_comp_wl_input_pointer_cb_cursor_set(struct wl_client *client, struct wl_resou
      {
         e_comp->pointer->hot.x = x;
         e_comp->pointer->hot.y = y;
-        ec->visible = EINA_TRUE;
+        if (e_config->show_cursor)
+          ec->visible = EINA_TRUE;
      }
 }