From 56deff41b6c2c6190894068994ba403978068bad Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 3 Apr 2018 12:50:05 -0400 Subject: Implement input inhibit in rootston --- backend/backend.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'backend/backend.c') diff --git a/backend/backend.c b/backend/backend.c index 93d7e0df..23e212b6 100644 --- a/backend/backend.c +++ b/backend/backend.c @@ -182,7 +182,3 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) { return backend; } - -uint32_t usec_to_msec(uint64_t usec) { - return (uint32_t)(usec / 1000); -} -- cgit v1.2.3 From 68ad7e5092c1fb64fb26fa34bb6368fcd558f736 Mon Sep 17 00:00:00 2001 From: Tancredi Orlando Date: Wed, 4 Apr 2018 19:59:47 +0200 Subject: Add ifdef to build without X11 --- backend/backend.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/backend.c') diff --git a/backend/backend.c b/backend/backend.c index 23e212b6..b583855e 100644 --- a/backend/backend.c +++ b/backend/backend.c @@ -91,6 +91,7 @@ static struct wlr_backend *attempt_wl_backend(struct wl_display *display) { return backend; } +#ifdef WLR_HAS_X11_BACKEND static struct wlr_backend *attempt_x11_backend(struct wl_display *display, const char *x11_display) { struct wlr_backend *backend = wlr_x11_backend_create(display, x11_display); @@ -105,6 +106,7 @@ static struct wlr_backend *attempt_x11_backend(struct wl_display *display, return backend; } +#endif struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) { struct wlr_backend *backend = wlr_multi_backend_create(display); -- cgit v1.2.3