mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 15:12:26 +00:00
backend/drm: set drmEventContext version to 2
As per [1] set drmEventContext version to 2, since wlroots does not use the page_flip_handler2. [1]: https://s-opensource.org/2017/04/12/libdrm-event-handling-youre-probably-wrong/
This commit is contained in:
parent
75005fd58d
commit
77478ac302
@ -1261,7 +1261,7 @@ static void page_flip_handler(int fd, unsigned seq,
|
||||
|
||||
int handle_drm_event(int fd, uint32_t mask, void *data) {
|
||||
drmEventContext event = {
|
||||
.version = DRM_EVENT_CONTEXT_VERSION,
|
||||
.version = 2,
|
||||
.page_flip_handler = page_flip_handler,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user