e_comp_wl_input: Use e_client_from_surface_resource() 75/296275/1
authorSeunghun Lee <shiin.lee@samsung.com>
Mon, 24 Jul 2023 08:18:10 +0000 (17:18 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 25 Jul 2023 00:17:19 +0000 (09:17 +0900)
Use e_client_from_surface_resource() to get a E_Client instance from a
surface resource instead of using wl_resource_get_user_data(). The user
data of wl_resource for surface is no longer a E_Client instance.

Change-Id: I37fec784cbfc150aaaebef9860abde3283d346be

src/bin/e_comp_wl_input.c

index a53e6fa..3eabe66 100644 (file)
@@ -1070,7 +1070,7 @@ _e_comp_wl_input_cb_pointer_constraints_lock_pointer(struct wl_client *client,
         return;
      }
 
-   E_Client *ec = wl_resource_get_user_data(surface);
+   E_Client *ec = e_client_from_surface_resource(surface);
 
    if (!ec)
      {