Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1260 from RyanDwyer/xwayland-set-decorations
Browse files Browse the repository at this point in the history
xwayland: Introduce set_decorations event
  • Loading branch information
emersion committed Sep 24, 2018
2 parents f5658c2 + 44613c0 commit 5b687b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/wlr/xwayland.h
Expand Up @@ -163,6 +163,7 @@ struct wlr_xwayland_surface {
struct wl_signal set_pid;
struct wl_signal set_window_type;
struct wl_signal set_hints;
struct wl_signal set_decorations;
struct wl_signal set_override_redirect;
struct wl_signal ping_timeout;
} events;
Expand Down
2 changes: 2 additions & 0 deletions xwayland/xwm.c
Expand Up @@ -159,6 +159,7 @@ static struct wlr_xwayland_surface *xwayland_surface_create(
wl_signal_init(&surface->events.set_pid);
wl_signal_init(&surface->events.set_window_type);
wl_signal_init(&surface->events.set_hints);
wl_signal_init(&surface->events.set_decorations);
wl_signal_init(&surface->events.set_override_redirect);
wl_signal_init(&surface->events.ping_timeout);

Expand Down Expand Up @@ -594,6 +595,7 @@ static void read_surface_motif_hints(struct wlr_xwm *xwm,
WLR_XWAYLAND_SURFACE_DECORATIONS_NO_TITLE;
}
}
wlr_signal_emit_safe(&xsurface->events.set_decorations, xsurface);
}

wlr_log(WLR_DEBUG, "MOTIF_WM_HINTS (%d)", reply->value_len);
Expand Down

0 comments on commit 5b687b4

Please sign in to comment.