mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-14 09:25:57 +01:00
xwayland: add wlr_xwayland_surface->motif_hints
This commit is contained in:
parent
0c22ad09a7
commit
ef5914bdb6
2 changed files with 9 additions and 1 deletions
|
@ -53,6 +53,8 @@ struct wlr_xwayland_surface {
|
|||
xcb_atom_t *protocols;
|
||||
size_t protocols_len;
|
||||
|
||||
uint32_t motif_hints[5];
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
|
||||
|
|
|
@ -286,7 +286,13 @@ static void read_surface_normal_hints(struct wlr_xwm *xwm,
|
|||
|
||||
static void read_surface_motif_hints(struct wlr_xwm *xwm,
|
||||
struct wlr_xwayland_surface *surface, xcb_get_property_reply_t *reply) {
|
||||
// TODO
|
||||
if (reply->value_len < 5) {
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t *motif_hints = xcb_get_property_value(reply);
|
||||
memcpy(surface->motif_hints, motif_hints, sizeof(surface->motif_hints));
|
||||
|
||||
wlr_log(L_DEBUG, "MOTIF_WM_HINTS (%d)", reply->value_len);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue