e_client/e_comp_wl_input: adds/sets a boolean variable 'is_cursor' in E_Client structure 48/103748/5
authorJengHyun Kang <jhyuni.kang@samsung.com>
Fri, 9 Dec 2016 09:29:20 +0000 (18:29 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 13 Dec 2016 08:37:11 +0000 (00:37 -0800)
Change-Id: I19952f0e8f3e2b85358d1c20e7643e6df36771d4

src/bin/e_client.h
src/bin/e_comp_wl_input.c

index 2eaa7bb2e916b2b0e3ca83a1ea9635bcae5ba6ff..02f5ba211447c168e48c7ebba15e836f1e113e47 100644 (file)
@@ -899,6 +899,8 @@ struct E_Client
         Eina_Bool provider : 1;
         Eina_Bool consumer : 1;
      } remote_surface;
+
+   Eina_Bool is_cursor : 1; // The client is a cursor client
 };
 
 #define e_client_focus_policy_click(ec) \
index 7a64e9a3dfc182aaab74e60002fce2334315a9b2..1c3d1d6c73fd16cb5c7d5e41b8109683b3f2f589 100644 (file)
@@ -107,6 +107,7 @@ _e_comp_wl_input_pointer_cb_cursor_set(struct wl_client *client, struct wl_resou
         ec->comp_data->shell.map = _e_comp_wl_input_pointer_map;
 
         evas_object_layer_set(ec->frame, E_LAYER_MAX - 1);
+        ec->is_cursor = EINA_TRUE;
      }
 
    /* ignore cursor changes during resize/move I guess */