diff options
author | Simon Ser <contact@emersion.fr> | 2021-06-24 11:56:45 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-06-24 11:56:45 +0200 |
commit | 264d4e2bceec3b3febf246dddaee9d8955065c43 (patch) | |
tree | 29f9293adeb8f26a5c73c9b83e6aeee701a24816 | |
parent | 0467a7523ae79abd454b1fa9e7161d54d3c6f069 (diff) |
backend/drm: rename page_flip_handler to handle_page_flip
This is more consistent with the rest of the wlroots naming.
-rw-r--r-- | backend/drm/drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index b56cf6d5..3a5ad1b9 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1515,7 +1515,7 @@ static int mhz_to_nsec(int mhz) { return 1000000000000LL / mhz; } -static void page_flip_handler(int fd, unsigned seq, +static void handle_page_flip(int fd, unsigned seq, unsigned tv_sec, unsigned tv_usec, unsigned crtc_id, void *data) { struct wlr_drm_backend *drm = data; @@ -1585,7 +1585,7 @@ int handle_drm_event(int fd, uint32_t mask, void *data) { drmEventContext event = { .version = 3, - .page_flip_handler2 = page_flip_handler, + .page_flip_handler2 = handle_page_flip, }; if (drmHandleEvent(fd, &event) != 0) { |