diff options
| author | Berke Güzel <berke.guzel@gdh.digital> | 2026-10-14 09:38:31 +0300 |
|---|---|---|
| committer | Berke Güzel <berke.guzel@gdh.digital> | 2026-10-14 09:38:31 +0300 |
| commit | 5ef6ca21ab9e1cf4f69254234d190a634b777d52 (patch) | |
| tree | 974d3797a6d9487e54a811e224bf78a3f52dda85 /src/common/backend.c | |
| parent | 563b23a33726289387193b85d90fb569631ee05f (diff) | |
Remove deprecated Cocoa OpenGL and private compatibility APIs
Diffstat (limited to 'src/common/backend.c')
| -rw-r--r-- | src/common/backend.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/common/backend.c b/src/common/backend.c index 8d20f67..939ec71 100644 --- a/src/common/backend.c +++ b/src/common/backend.c @@ -34,7 +34,6 @@ static struct yasl_private_display *open_backend(enum yasl_private_backend backe struct yasl_private_display *d = ops->display_open(loop, spec); if (!d && !errno) errno = ENODEV; if (d) { - d->callback_ud = spec ? spec->ud : NULL; if (!yasl_private_events_open(d)) { int error = errno; ops->display_close(d); @@ -132,26 +131,6 @@ int yasl_private_display_double_click_ms(const struct yasl_private_display *d) return ms > 0 && ms <= 10000 ? ms : YASL_PRIVATE_DOUBLE_CLICK_MS_DEFAULT; } -void yasl_private_display_copy(struct yasl_private_display *d, enum yasl_private_selection sel, const char *text) -{ - if (!d || !d->ops->display_copy || !text || - (sel != YASL_PRIVATE_CLIPBOARD && sel != YASL_PRIVATE_PRIMARY) || - (sel == YASL_PRIVATE_PRIMARY && !(yasl_private_display_caps(d) & YASL_PRIVATE_CAP_PRIMARY_SELECTION))) - return; - d->ops->display_copy(d, sel, text); -} - -void yasl_private_display_paste(struct yasl_private_display *d, enum yasl_private_selection sel, struct yasl_surface *target) -{ - if (!d || !d->ops->display_paste || - (sel != YASL_PRIVATE_CLIPBOARD && sel != YASL_PRIVATE_PRIMARY) || - (sel == YASL_PRIVATE_PRIMARY && !(yasl_private_display_caps(d) & YASL_PRIVATE_CAP_PRIMARY_SELECTION))) - return; - if (!target || target->display != d) - return; - d->ops->display_paste(d, sel, target); -} - bool yasl_private_display_drag_start(struct yasl_private_display *d, struct yasl_surface *origin, const struct yasl_private_drag_image *image, const struct yasl_private_drag_listener *l, void *ud) { if (!d || !d->ops->display_drag_start) @@ -336,17 +315,6 @@ bool yasl_private_surface_present(struct yasl_surface *s, const struct yasl_priv return s->display->ops->surface_present(s, fb, &clipped); } -bool yasl_private_surface_poll_event(struct yasl_surface *s, struct yasl_private_event *ev) -{ - if (!s || !ev) - return false; - if (s->display && s->display->events) - return yasl_private_events_poll_surface(s, ev); - if (s->display && s->display->ops && s->display->ops->surface_poll_event) - return s->display->ops->surface_poll_event(s, ev); - return input_queue_pop(&s->input, ev); -} - bool yasl_private_surface_read_pixels(struct yasl_surface *s, uint32_t *out, size_t cap, struct yasl_private_vector2i *size) { |
