mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
wayland: add scrollback indicator surface + sub-surface to wl_window
This commit is contained in:
parent
a39c490d9b
commit
2815c1c076
2 changed files with 12 additions and 0 deletions
|
|
@ -1203,6 +1203,11 @@ wayl_win_destroy(struct wl_window *win)
|
||||||
* nor mouse focus).
|
* nor mouse focus).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (win->scrollback_indicator_surface != NULL) {
|
||||||
|
wl_surface_attach(win->scrollback_indicator_surface, NULL, 0, 0);
|
||||||
|
wl_surface_commit(win->scrollback_indicator_surface);
|
||||||
|
}
|
||||||
|
|
||||||
/* Scrollback search */
|
/* Scrollback search */
|
||||||
if (win->search_surface != NULL) {
|
if (win->search_surface != NULL) {
|
||||||
wl_surface_attach(win->search_surface, NULL, 0, 0);
|
wl_surface_attach(win->search_surface, NULL, 0, 0);
|
||||||
|
|
@ -1227,6 +1232,10 @@ wayl_win_destroy(struct wl_window *win)
|
||||||
tll_free(win->on_outputs);
|
tll_free(win->on_outputs);
|
||||||
|
|
||||||
csd_destroy(win);
|
csd_destroy(win);
|
||||||
|
if (win->scrollback_indicator_sub_surface != NULL)
|
||||||
|
wl_subsurface_destroy(win->scrollback_indicator_sub_surface);
|
||||||
|
if (win->scrollback_indicator_surface != NULL)
|
||||||
|
wl_surface_destroy(win->scrollback_indicator_surface);
|
||||||
if (win->search_sub_surface != NULL)
|
if (win->search_sub_surface != NULL)
|
||||||
wl_subsurface_destroy(win->search_sub_surface);
|
wl_subsurface_destroy(win->search_sub_surface);
|
||||||
if (win->search_surface != NULL)
|
if (win->search_surface != NULL)
|
||||||
|
|
|
||||||
|
|
@ -273,6 +273,9 @@ struct wl_window {
|
||||||
struct wl_surface *search_surface;
|
struct wl_surface *search_surface;
|
||||||
struct wl_subsurface *search_sub_surface;
|
struct wl_subsurface *search_sub_surface;
|
||||||
|
|
||||||
|
struct wl_surface *scrollback_indicator_surface;
|
||||||
|
struct wl_subsurface *scrollback_indicator_sub_surface;
|
||||||
|
|
||||||
struct wl_callback *frame_callback;
|
struct wl_callback *frame_callback;
|
||||||
|
|
||||||
tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */
|
tll(const struct monitor *) on_outputs; /* Outputs we're mapped on */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue