mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-12 05:34:01 -04:00
wayland: csd_instantiate(): remove TODO
The sub-surfaces are working just fine without the initial commit.
This commit is contained in:
parent
5c8579043d
commit
7b5a43bcbd
1 changed files with 0 additions and 21 deletions
21
wayland.c
21
wayland.c
|
|
@ -49,27 +49,6 @@ csd_instantiate(struct wl_window *win)
|
||||||
win, win->csd.surface[CSD_SURF_TITLE].surf, &win->csd.surface[i]);
|
win, win->csd.surface[CSD_SURF_TITLE].surf, &win->csd.surface[i]);
|
||||||
xassert(ret);
|
xassert(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: we need the to commit? */
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
for (size_t i = 0; i < ALEN(win->csd.surface); i++) {
|
|
||||||
xassert(win->csd.surface[i] == NULL);
|
|
||||||
xassert(win->csd.sub_surface[i] == NULL);
|
|
||||||
|
|
||||||
win->csd.surface[i] = wl_compositor_create_surface(wayl->compositor);
|
|
||||||
|
|
||||||
struct wl_surface *parent = i < CSD_SURF_MINIMIZE
|
|
||||||
? win->surface : win->csd.surface[CSD_SURF_TITLE];
|
|
||||||
|
|
||||||
win->csd.sub_surface[i] = wl_subcompositor_get_subsurface(
|
|
||||||
wayl->sub_compositor, win->csd.surface[i], parent);
|
|
||||||
|
|
||||||
wl_subsurface_set_sync(win->csd.sub_surface[i]);
|
|
||||||
wl_surface_set_user_data(win->csd.surface[i], win);
|
|
||||||
wl_surface_commit(win->csd.surface[i]);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue