e_explicit_sync: Fix wrong checking error 09/317809/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 19 Sep 2024 02:00:46 +0000 (11:00 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Thu, 19 Sep 2024 02:15:52 +0000 (11:15 +0900)
Change-Id: I453f3b4f07efb79e7596bfd1996e6b5d2ff5ee79

src/bin/server/e_explicit_sync.c

index ff4182f557910fc811c916ab11410aa5499e9c6d..fe34e25d8bccb6fb05747d60287918ceba6a4db1 100644 (file)
@@ -387,20 +387,20 @@ static void _e_explicit_sync_cb_get_synchronization(struct wl_client *client,
         goto fail;
      }
 
-/* temporary disable */
-#if 0
    if (e_client_explicit_sync_get(ec))
      {
+/* temporary disable */
+#if 0
         wl_resource_post_error(resource,
                                ZWP_LINUX_EXPLICIT_SYNCHRONIZATION_V1_ERROR_SYNCHRONIZATION_EXISTS,
                                "wl_surface resource:%u already has synchronization",
                                (unsigned int)wl_resource_get_id(surface));
         goto fail;
-     }
 #else
-   ERR("ec:%p wl_surface resource:%u already has synchronization",
-       ec, (unsigned int)wl_resource_get_id(surface));
+        ERR("ec:%p wl_surface resource:%u already has synchronization",
+            ec, (unsigned int)wl_resource_get_id(surface));
 #endif
+     }
 
    explicit_sync_surface = E_NEW(E_Explicit_Sync_Surface, 1);
    if (!explicit_sync_surface)