mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
term: convert anonymous 'window' struct to named 'wl_window' struct
This commit is contained in:
parent
f63458ef33
commit
a2b3cc6cfe
1 changed files with 17 additions and 15 deletions
32
terminal.h
32
terminal.h
|
|
@ -38,6 +38,22 @@ struct monitor {
|
||||||
float refresh;
|
float refresh;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct wl_window {
|
||||||
|
struct wl_surface *surface;
|
||||||
|
struct xdg_wm_base *shell;
|
||||||
|
struct xdg_surface *xdg_surface;
|
||||||
|
struct xdg_toplevel *xdg_toplevel;
|
||||||
|
|
||||||
|
struct zxdg_decoration_manager_v1 *xdg_decoration_manager;
|
||||||
|
struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration;
|
||||||
|
|
||||||
|
/* Scrollback search */
|
||||||
|
struct wl_surface *search_surface;
|
||||||
|
struct wl_subsurface *search_sub_surface;
|
||||||
|
|
||||||
|
tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */
|
||||||
|
};
|
||||||
|
|
||||||
struct wayland {
|
struct wayland {
|
||||||
struct wl_display *display;
|
struct wl_display *display;
|
||||||
struct wl_registry *registry;
|
struct wl_registry *registry;
|
||||||
|
|
@ -361,21 +377,7 @@ struct terminal {
|
||||||
} fextents;
|
} fextents;
|
||||||
|
|
||||||
struct wayland wl;
|
struct wayland wl;
|
||||||
struct {
|
struct wl_window window;
|
||||||
struct wl_surface *surface;
|
|
||||||
struct xdg_wm_base *shell;
|
|
||||||
struct xdg_surface *xdg_surface;
|
|
||||||
struct xdg_toplevel *xdg_toplevel;
|
|
||||||
|
|
||||||
struct zxdg_decoration_manager_v1 *xdg_decoration_manager;
|
|
||||||
struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration;
|
|
||||||
|
|
||||||
/* Scrollback search */
|
|
||||||
struct wl_surface *search_surface;
|
|
||||||
struct wl_subsurface *search_sub_surface;
|
|
||||||
|
|
||||||
tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */
|
|
||||||
} window;
|
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
int scrollback_lines;
|
int scrollback_lines;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue