aboutsummaryrefslogtreecommitdiff
path: root/harness/src/wl.c
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2024-02-22 16:07:54 -0700
committerJosh Rahm <rahm@google.com>2024-02-22 16:08:38 -0700
commit320d4a87447491abd1fa0cfa898bd6b5ae73dee9 (patch)
tree923347ae3fbcef1b3fe20ca4f6fca69fda3ff05b /harness/src/wl.c
parent0724c6d9cd77d83bd113204bdec5ac23491c35d7 (diff)
downloadmontis-320d4a87447491abd1fa0cfa898bd6b5ae73dee9.tar.gz
montis-320d4a87447491abd1fa0cfa898bd6b5ae73dee9.tar.bz2
montis-320d4a87447491abd1fa0cfa898bd6b5ae73dee9.zip
better surface handling
Diffstat (limited to 'harness/src/wl.c')
-rw-r--r--harness/src/wl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/harness/src/wl.c b/harness/src/wl.c
index bed98b4..2bbef59 100644
--- a/harness/src/wl.c
+++ b/harness/src/wl.c
@@ -627,8 +627,8 @@ static void xdg_surface_map(struct wl_listener *listener, void *data)
{
/* Called when the surface is mapped, or ready to display on-screen. */
struct tinywl_view *view = wl_container_of(listener, view, map);
- plugin_call_update_state(view->server->plugin, plugin_handle_surface_map,
- data);
+ plugin_call_update_state(view->server->plugin, plugin_handle_surface, data,
+ SURFACE_MAP);
view->mapped = true;
focus_view(view, view->xdg_surface->surface);
}
@@ -637,8 +637,8 @@ static void xdg_surface_unmap(struct wl_listener *listener, void *data)
{
/* Called when the surface is unmapped, and should no longer be shown. */
struct tinywl_view *view = wl_container_of(listener, view, unmap);
- plugin_call_update_state(view->server->plugin, plugin_handle_surface_unmap,
- data);
+ plugin_call_update_state(view->server->plugin, plugin_handle_surface, data,
+ SURFACE_UNMAP);
view->mapped = false;
}
@@ -646,8 +646,8 @@ static void xdg_surface_destroy(struct wl_listener *listener, void *data)
{
/* Called when the surface is destroyed and should never be shown again. */
struct tinywl_view *view = wl_container_of(listener, view, destroy);
- plugin_call_update_state(view->server->plugin, plugin_handle_surface_destroy,
- data);
+ plugin_call_update_state(view->server->plugin, plugin_handle_surface, data,
+ SURFACE_DELETE);
wl_list_remove(&view->link);
free(view);
}