From 77dc1c28aa551616521b60f1a8727a25a45f82e1 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 28 Jul 2023 14:26:35 +0200 Subject: [PATCH] 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. --- include/wlr/xwayland/xwayland.h | 1 - xwayland/xwm.c | 2 -- 2 files changed, 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); }