e_policy_wl: add code to handle a role for cursor window
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 23 May 2017 04:37:04 +0000 (13:37 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Fri, 26 May 2017 05:08:43 +0000 (14:08 +0900)
If the window's role is set to "wl_pointer-cursor", then e considers it to cursor window.
And e skips the cursor window while handling tizen splash image.

Change-Id: Ibde721aec6faa1e7f60610bc0dd39699aa1be35b

src/bin/e_policy_wl.c

index 77a7707faeeb0f6bb5e29ba705526bf5c7722f76..abf61c5359532ccdaeb7588a2b4b5370574b1414 100644 (file)
@@ -1681,6 +1681,11 @@ _tzpol_iface_cb_role_set(struct wl_client *client EINA_UNUSED, struct wl_resourc
         if (!ec->comp_data) return;
         e_comp_wl->selection.cbhm = ec->comp_data->surface;
      }
+   else if (!e_util_strcmp("wl_pointer-cursor", role))
+     {
+        ELOGF("TZPOL", "Set CURSOR role", ec->pixmap, ec);
+        ec->is_cursor = EINA_TRUE;
+     }
 }
 
 static void
@@ -5490,6 +5495,7 @@ _tzlaunch_img_iface_cb_owner(struct wl_client *client EINA_UNUSED, struct wl_res
      {
         if (pre_ec == tzlaunch_img->ec) continue;
         if (!pre_ec->ignored) continue;
+        if (pre_ec->is_cursor) continue;
         new_ec = pre_ec;
         break;
      }
@@ -5575,6 +5581,7 @@ _tzlaunch_splash_iface_cb_owner(struct wl_client *client EINA_UNUSED, struct wl_
      {
         if (pre_ec == tzlaunch_splash->ec) continue;
         if (!pre_ec->ignored) continue;
+        if (pre_ec->is_cursor) continue;
         new_ec = pre_ec;
         break;
      }