Unverified Commit fdff5fd1 authored by emersion's avatar emersion Committed by GitHub
Browse files

Merge pull request #1147 from RyanDwyer/xwayland-set-hints

Introduce set_hints event for xwayland
parents 83809cb7 dc58c135
...@@ -150,6 +150,7 @@ struct wlr_xwayland_surface { ...@@ -150,6 +150,7 @@ struct wlr_xwayland_surface {
struct wl_signal set_parent; struct wl_signal set_parent;
struct wl_signal set_pid; struct wl_signal set_pid;
struct wl_signal set_window_type; struct wl_signal set_window_type;
struct wl_signal set_hints;
struct wl_signal set_override_redirect; struct wl_signal set_override_redirect;
struct wl_signal ping_timeout; struct wl_signal ping_timeout;
} events; } events;
......
...@@ -154,6 +154,7 @@ static struct wlr_xwayland_surface *xwayland_surface_create( ...@@ -154,6 +154,7 @@ static struct wlr_xwayland_surface *xwayland_surface_create(
wl_signal_init(&surface->events.set_parent); wl_signal_init(&surface->events.set_parent);
wl_signal_init(&surface->events.set_pid); wl_signal_init(&surface->events.set_pid);
wl_signal_init(&surface->events.set_window_type); wl_signal_init(&surface->events.set_window_type);
wl_signal_init(&surface->events.set_hints);
wl_signal_init(&surface->events.set_override_redirect); wl_signal_init(&surface->events.set_override_redirect);
wl_signal_init(&surface->events.ping_timeout); wl_signal_init(&surface->events.ping_timeout);
...@@ -492,6 +493,7 @@ static void read_surface_hints(struct wlr_xwm *xwm, ...@@ -492,6 +493,7 @@ static void read_surface_hints(struct wlr_xwm *xwm,
xsurface->hints_urgency = xcb_icccm_wm_hints_get_urgency(&hints); xsurface->hints_urgency = xcb_icccm_wm_hints_get_urgency(&hints);
wlr_log(WLR_DEBUG, "WM_HINTS (%d)", reply->value_len); wlr_log(WLR_DEBUG, "WM_HINTS (%d)", reply->value_len);
wlr_signal_emit_safe(&xsurface->events.set_hints, xsurface);
} }
#else #else
static void read_surface_hints(struct wlr_xwm *xwm, static void read_surface_hints(struct wlr_xwm *xwm,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment