e_compositor: Remove local variable for concision 62/315662/2
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 29 Jul 2024 04:56:13 +0000 (13:56 +0900)
committerJunSeok Kim <juns.kim@samsung.com>
Tue, 6 Aug 2024 05:16:55 +0000 (05:16 +0000)
Change-Id: Id9a2e6f11b9295a6beae5cfa2149ce27b3cd12dd

src/bin/server/e_compositor.c

index b846b48..99ee273 100644 (file)
@@ -795,20 +795,16 @@ static void
 _e_compositor_cb_new_client(void *data EINA_UNUSED, E_Client *ec)
 {
    E_Surface *surface;
-   Ecore_Window win;
 
    /* make sure this is a wayland client */
    if (e_pixmap_type_get(ec->pixmap) != E_PIXMAP_TYPE_WL) return;
 
    TRACE_DS_BEGIN(COMP_WL:CLIENT NEW HOOK);
 
-   /* get window id from pixmap */
-   win = e_pixmap_window_get(ec->pixmap);
-
    /* ignore fake root windows */
    if ((ec->override) && ((ec->x == -77) && (ec->y == -77)))
      {
-        e_comp_ignore_win_add(E_PIXMAP_TYPE_WL, win);
+        e_comp_ignore_win_add(E_PIXMAP_TYPE_WL, e_pixmap_window_get(ec->pixmap));
         e_object_del(E_OBJECT(ec));
         TRACE_DS_END();
         return;