mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend/drm: rename page_flip_handler to handle_page_flip
This is more consistent with the rest of the wlroots naming.
This commit is contained in:
parent
0467a7523a
commit
264d4e2bce
1 changed files with 2 additions and 2 deletions
|
@ -1515,7 +1515,7 @@ static int mhz_to_nsec(int mhz) {
|
||||||
return 1000000000000LL / 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) {
|
unsigned tv_sec, unsigned tv_usec, unsigned crtc_id, void *data) {
|
||||||
struct wlr_drm_backend *drm = data;
|
struct wlr_drm_backend *drm = data;
|
||||||
|
|
||||||
|
@ -1585,7 +1585,7 @@ int handle_drm_event(int fd, uint32_t mask, void *data) {
|
||||||
|
|
||||||
drmEventContext event = {
|
drmEventContext event = {
|
||||||
.version = 3,
|
.version = 3,
|
||||||
.page_flip_handler2 = page_flip_handler,
|
.page_flip_handler2 = handle_page_flip,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (drmHandleEvent(fd, &event) != 0) {
|
if (drmHandleEvent(fd, &event) != 0) {
|
||||||
|
|
Loading…
Reference in a new issue