From 7b5a43bcbd4f6e1f49bd7b65ad37ba4994f2e70d Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 17 Feb 2021 21:48:39 +0100 Subject: wayland: csd_instantiate(): remove TODO The sub-surfaces are working just fine without the initial commit. --- wayland.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/wayland.c b/wayland.c index 85dc08e6..09065b3c 100644 --- a/wayland.c +++ b/wayland.c @@ -49,27 +49,6 @@ csd_instantiate(struct wl_window *win) win, win->csd.surface[CSD_SURF_TITLE].surf, &win->csd.surface[i]); 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 -- cgit v1.3