summaryrefslogtreecommitdiff
path: root/src/platform/wayland/internal.h
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-13 14:14:28 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-13 14:14:28 +0300
commit339e1ad7adb8340732ee856d0f6f0d2c7f1455d1 (patch)
tree55d2735987f240e5eaacf6581ed3ce5db2c0e3a8 /src/platform/wayland/internal.h
parente185a9d719d469a0fd7edcf09a6342f7b10cbb8e (diff)
Inline trivial internal helpers at their call sites
Diffstat (limited to 'src/platform/wayland/internal.h')
-rw-r--r--src/platform/wayland/internal.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/platform/wayland/internal.h b/src/platform/wayland/internal.h
index 51f51eb..f777674 100644
--- a/src/platform/wayland/internal.h
+++ b/src/platform/wayland/internal.h
@@ -334,7 +334,6 @@ int buffer_pick_free_index(const struct buffer *bufs, int cur);
int buffer_prepare(struct wayland_surface *w, struct buffer *b, int width, int height,
const struct wl_buffer_listener *listener);
int apply_pending_geometry(struct wayland_surface *w);
-int logical_px_ceil(int device, uint32_t scale_120);
static inline void wl_damage_list(struct wl_surface *s, const struct yasl_damage_list *d)
{
@@ -351,12 +350,6 @@ static inline void wl_damage_list(struct wl_surface *s, const struct yasl_damage
void surface_update_opaque_region(struct wayland_surface *w);
int surface_init_scaling(struct wayland_surface *w);
-static inline bool surface_gets_preferred_scale(struct wl_surface *s)
-{
- return wl_proxy_get_version((struct wl_proxy *)s) >=
- WL_SURFACE_PREFERRED_BUFFER_SCALE_SINCE_VERSION;
-}
-
uint64_t conn_output_mask(const struct wayland_display *c, const struct wl_output *proxy);
uint32_t conn_output_scale_120(const struct wayland_display *c, uint64_t outputs);
void conn_destroy_outputs(struct wayland_display *c);
@@ -365,15 +358,8 @@ uint64_t conn_pres_to_mono(const struct wayland_display *c, uint64_t ns);
uint64_t conn_mono_to_pres(const struct wayland_display *c, uint64_t ns);
void surface_draw_frame(struct wayland_surface *w);
void surface_fail(struct wayland_surface *w);
-void display_enter(struct wayland_display *c);
void display_leave(struct wayland_display *c);
-static inline struct wayland_surface *conn_surface_for(struct wayland_display *c, struct wl_surface *s)
-{
- (void)c;
- return s ? (struct wayland_surface *)wl_surface_get_user_data(s) : NULL;
-}
-
static inline struct wayland_surface *surface_root(struct wayland_surface *w)
{
while (w && w->parent)
@@ -391,7 +377,6 @@ void seat_bind(struct wayland_display *c, struct wl_registry *registry,
uint32_t name, uint32_t version);
bool seat_remove(struct wayland_display *c, uint32_t name);
void seat_destroy(struct seat *s);
-struct seat *conn_active_seat(const struct wayland_display *c);
void seat_note_input(struct seat *s, uint32_t serial);
void seat_forget_surface(struct seat *s, struct wayland_surface *w);
void seat_clipboard_ensure(struct seat *s);