mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-23 05:33:57 -04:00
wayland: remove wayl_terminal_from_xdg_{surface,toplevel}
This commit is contained in:
parent
b0fbc064dd
commit
765fe13aff
2 changed files with 0 additions and 30 deletions
26
wayland.c
26
wayland.c
|
|
@ -1006,29 +1006,3 @@ wayl_terminal_from_surface(struct wayland *wayl, struct wl_surface *surface)
|
||||||
LOG_WARN("surface %p doesn't map to a terminal", surface);
|
LOG_WARN("surface %p doesn't map to a terminal", surface);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct terminal *
|
|
||||||
wayl_terminal_from_xdg_surface(struct wayland *wayl,
|
|
||||||
struct xdg_surface *surface)
|
|
||||||
{
|
|
||||||
tll_foreach(wayl->terms, it) {
|
|
||||||
if (it->item->window->xdg_surface == surface)
|
|
||||||
return it->item;
|
|
||||||
}
|
|
||||||
|
|
||||||
assert(false);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct terminal *
|
|
||||||
wayl_terminal_from_xdg_toplevel(struct wayland *wayl,
|
|
||||||
struct xdg_toplevel *toplevel)
|
|
||||||
{
|
|
||||||
tll_foreach(wayl->terms, it) {
|
|
||||||
if (it->item->window->xdg_toplevel == toplevel)
|
|
||||||
return it->item;
|
|
||||||
}
|
|
||||||
|
|
||||||
assert(false);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -173,10 +173,6 @@ void wayl_destroy(struct wayland *wayl);
|
||||||
|
|
||||||
struct terminal *wayl_terminal_from_surface(
|
struct terminal *wayl_terminal_from_surface(
|
||||||
struct wayland *wayl, struct wl_surface *surface);
|
struct wayland *wayl, struct wl_surface *surface);
|
||||||
struct terminal *wayl_terminal_from_xdg_surface(
|
|
||||||
struct wayland *wayl, struct xdg_surface *surface);
|
|
||||||
struct terminal *wayl_terminal_from_xdg_toplevel(
|
|
||||||
struct wayland *wayl, struct xdg_toplevel *toplevel);
|
|
||||||
|
|
||||||
/* TODO: pass something other than 'term'? Need scale... */
|
/* TODO: pass something other than 'term'? Need scale... */
|
||||||
bool wayl_cursor_set(struct wayland *wayl, const struct terminal *term);
|
bool wayl_cursor_set(struct wayland *wayl, const struct terminal *term);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue