ref: 59dda5420c908820123fb597b20714206c3b63b2
parent: c371fd5f4d42288acf734fcf7474b6a916ac4cf6
author: Jacob Moody <moody@posixcafe.org>
date: Tue Mar 12 13:28:22 EDT 2024
gui-wl: we must roundtrip before configuring decorations
--- a/gui-wl/wl-cb.c
+++ b/gui-wl/wl-cb.c
@@ -767,6 +767,9 @@
xdg_surface_add_listener(xdg_surface, &xdg_surface_listener, wl);
xdg_toplevel_add_listener(wl->xdg_toplevel, &xdg_toplevel_listener, wl);
+ wl_surface_commit(wl->surface);
+ wl_display_roundtrip(wl->display);
+
wl->client_side_deco = wl->decoman == nil;
if(wl->decoman != nil){
deco = zxdg_decoration_manager_v1_get_toplevel_decoration(wl->decoman, wl->xdg_toplevel);
@@ -773,9 +776,6 @@
zxdg_toplevel_decoration_v1_add_listener(deco, &zxdg_toplevel_decoration_v1_listener, wl);
zxdg_toplevel_decoration_v1_set_mode(deco, ZXDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE);
}
-
- wl_surface_commit(wl->surface);
- wl_display_roundtrip(wl->display);
xdg_toplevel_set_app_id(wl->xdg_toplevel, "drawterm");