mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
xwm: supply wlr_xwayland pointer to user_event_handler callback
Previously it was supplying a pointer to private struct wlr_xwm which was useless for compositors. The wlr_xwayland pointer in contrast does have a generic data field and thus can be used by compositors to attach their own pointer. Additionally change the return value from int to bool.
This commit is contained in:
parent
20997df416
commit
0a388a14f1
2 changed files with 4 additions and 4 deletions
|
|
@ -1747,7 +1747,7 @@ static int x11_event_handler(int fd, uint32_t mask, void *data) {
|
|||
count++;
|
||||
|
||||
if (xwm->xwayland->user_event_handler &&
|
||||
xwm->xwayland->user_event_handler(xwm, event)) {
|
||||
xwm->xwayland->user_event_handler(xwm->xwayland, event)) {
|
||||
free(event);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue