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

xwayland: Introduce set_role event #1226

Merged
merged 1 commit into from
Sep 3, 2018

Conversation

RyanDwyer
Copy link
Member

Do we want to name the event set_role or set_window_role?

RyanDwyer added a commit to RyanDwyer/sway that referenced this pull request Sep 2, 2018
RyanDwyer added a commit to RyanDwyer/sway that referenced this pull request Sep 2, 2018
RyanDwyer added a commit to RyanDwyer/sway that referenced this pull request Sep 2, 2018
xwayland/xwm.c Outdated
@@ -365,6 +368,36 @@ static void read_surface_class(struct wlr_xwm *xwm,
wlr_signal_emit_safe(&surface->events.set_class, surface);
}

#ifdef WLR_HAS_XCB_ICCCM
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this require ICCCM?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably doesn't. I was reading about WM_WINDOW_ROLE at https://tronche.com/gui/x/icccm/sec-5.html and due to the page title and the fact that it has icccm in the URL, I drew the conclusion that it required ICCCM.

Should I remove the #ifdef?.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xcb-icccm is an optional library that makes it easier to parse and format ICCCM messages. If we can parse some simple ICCCM messages without using xcb-icccm, I think we should go for it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation. I've removed the #ifdef.

@emersion
Copy link
Member

emersion commented Sep 2, 2018

Do we want to name the event set_role or set_window_role?

I'm fine with set_role

@emersion emersion merged commit d31a267 into swaywm:master Sep 3, 2018
@emersion
Copy link
Member

emersion commented Sep 3, 2018

Thanks!

@RyanDwyer RyanDwyer deleted the xwayland-set-role branch September 3, 2018 07:28
RyanDwyer added a commit to RyanDwyer/sway that referenced this pull request Sep 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants