e_compositor: Add some noise 19/316319/1
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 16 Aug 2024 05:42:40 +0000 (14:42 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 19 Aug 2024 08:09:01 +0000 (17:09 +0900)
The E_Client returned from launchscreen is supposed not to have
comp_data. Let's make some noise when this turns out not true.

Change-Id: Ifea2e202e51a7a5a87cb013549f8d08058cb24dd

src/bin/server/e_compositor.c

index 3c992d9..b4dd05b 100644 (file)
@@ -679,11 +679,7 @@ _e_comp_wl_client_usable_get(pid_t pid, E_Pixmap *ep)
    if (!ec)
      return NULL;
 
-   if (ec->comp_data)
-     {
-        /* do NOT replace with the client having comp data */
-        return NULL;
-     }
+   EINA_SAFETY_ON_FALSE_RETURN_VAL(ec->comp_data == NULL, NULL);
 
    e_comp_launchscrn_ec_remove(ec);