aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-07-28 14:26:35 +0200
committerAlexander Orzechowski <alex@ozal.ski>2023-08-03 03:19:35 +0000
commit77dc1c28aa551616521b60f1a8727a25a45f82e1 (patch)
treea4ed92d5cad0cd5e3591bc985144627986f57e55
parent73db481037cd145ad930293f7edb52a9a7b60ef0 (diff)
xwayland: drop wlr_xwayland_surface.events.set_pid
The PID of an X11 window cannot change. This is a remnant from the days when we queried the PID with a window property, instead of using XRes.
-rw-r--r--include/wlr/xwayland/xwayland.h1
-rw-r--r--xwayland/xwm.c2
2 files changed, 0 insertions, 3 deletions
diff --git a/include/wlr/xwayland/xwayland.h b/include/wlr/xwayland/xwayland.h
index eac6c124..06ea39c1 100644
--- a/include/wlr/xwayland/xwayland.h
+++ b/include/wlr/xwayland/xwayland.h
@@ -156,7 +156,6 @@ struct wlr_xwayland_surface {
struct wl_signal set_class;
struct wl_signal set_role;
struct wl_signal set_parent;
- struct wl_signal set_pid;
struct wl_signal set_startup_id;
struct wl_signal set_window_type;
struct wl_signal set_hints;
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 188bb5b8..0c30d8f6 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -177,7 +177,6 @@ static struct wlr_xwayland_surface *xwayland_surface_create(
wl_signal_init(&surface->events.set_role);
wl_signal_init(&surface->events.set_title);
wl_signal_init(&surface->events.set_parent);
- wl_signal_init(&surface->events.set_pid);
wl_signal_init(&surface->events.set_startup_id);
wl_signal_init(&surface->events.set_window_type);
wl_signal_init(&surface->events.set_hints);
@@ -627,7 +626,6 @@ static void read_surface_client_id(struct wlr_xwm *xwm,
return;
}
xsurface->pid = *pid;
- wl_signal_emit_mutable(&xsurface->events.set_pid, NULL);
free(reply);
}