diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/atomic.c | 6 | ||||
-rw-r--r-- | backend/drm/legacy.c | 4 | ||||
-rw-r--r-- | backend/libinput/events.c | 2 | ||||
-rw-r--r-- | backend/wayland/wl_seat.c | 2 |
4 files changed, 4 insertions, 10 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c index 023307fc..71b18f98 100644 --- a/backend/drm/atomic.c +++ b/backend/drm/atomic.c @@ -154,9 +154,6 @@ static bool atomic_conn_enable(struct wlr_drm_backend *drm, true); } -bool legacy_crtc_set_cursor(struct wlr_drm_backend *drm, - struct wlr_drm_crtc *crtc, struct gbm_bo *bo); - static bool atomic_crtc_set_cursor(struct wlr_drm_backend *drm, struct wlr_drm_crtc *crtc, struct gbm_bo *bo) { if (!crtc || !crtc->cursor) { @@ -185,9 +182,6 @@ static bool atomic_crtc_set_cursor(struct wlr_drm_backend *drm, return atomic_end(drm->fd, &atom); } -bool legacy_crtc_move_cursor(struct wlr_drm_backend *drm, - struct wlr_drm_crtc *crtc, int x, int y); - static bool atomic_crtc_move_cursor(struct wlr_drm_backend *drm, struct wlr_drm_crtc *crtc, int x, int y) { if (!crtc || !crtc->cursor) { diff --git a/backend/drm/legacy.c b/backend/drm/legacy.c index 79cd05b9..32d68814 100644 --- a/backend/drm/legacy.c +++ b/backend/drm/legacy.c @@ -68,13 +68,13 @@ bool legacy_crtc_move_cursor(struct wlr_drm_backend *drm, return !drmModeMoveCursor(drm->fd, crtc->id, x, y); } -bool legacy_crtc_set_gamma(struct wlr_drm_backend *drm, +static bool legacy_crtc_set_gamma(struct wlr_drm_backend *drm, struct wlr_drm_crtc *crtc, size_t size, uint16_t *r, uint16_t *g, uint16_t *b) { return !drmModeCrtcSetGamma(drm->fd, crtc->id, (uint32_t)size, r, g, b); } -size_t legacy_crtc_get_gamma_size(struct wlr_drm_backend *drm, +static size_t legacy_crtc_get_gamma_size(struct wlr_drm_backend *drm, struct wlr_drm_crtc *crtc) { return (size_t)crtc->legacy_crtc->gamma_size; } diff --git a/backend/libinput/events.c b/backend/libinput/events.c index 19c66f38..fa29ef93 100644 --- a/backend/libinput/events.c +++ b/backend/libinput/events.c @@ -9,7 +9,7 @@ #include "backend/libinput.h" #include "util/signal.h" -struct wlr_libinput_input_device *get_libinput_device_from_device( +static struct wlr_libinput_input_device *get_libinput_device_from_device( struct wlr_input_device *wlr_dev) { assert(wlr_input_device_is_libinput(wlr_dev)); return (struct wlr_libinput_input_device *)wlr_dev; diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c index cbe502e6..f80cf829 100644 --- a/backend/wayland/wl_seat.c +++ b/backend/wayland/wl_seat.c @@ -447,7 +447,7 @@ static struct zwp_pointer_gesture_pinch_v1_listener gesture_pinch_impl = { }; -void relative_pointer_handle_relative_motion(void *data, +static void relative_pointer_handle_relative_motion(void *data, struct zwp_relative_pointer_v1 *relative_pointer, uint32_t utime_hi, uint32_t utime_lo, wl_fixed_t dx, wl_fixed_t dy, wl_fixed_t dx_unaccel, wl_fixed_t dy_unaccel) { |