~raphi/somebar

7433a1ff990635b7f200c07306d5b69ceaa64a7b — Raphael Robatsch 3 months ago 8c52d47
Loosen required zwlr_layer_shell_v1 version

Version 1 is enough for somebar. dwl exports version 3 but we don't even
need to go that high.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main.cpp
M src/main.cpp => src/main.cpp +1 -1
@@ 403,7 403,7 @@ void onGlobalAdd(void*, wl_registry* registry, uint32_t name, const char* interf
	auto reg = HandleGlobalHelper { registry, name, interface };
	if (reg.handle(compositor, wl_compositor_interface, 4)) return;
	if (reg.handle(shm, wl_shm_interface, 1)) return;
	if (reg.handle(wlrLayerShell, zwlr_layer_shell_v1_interface, 4)) return;
	if (reg.handle(wlrLayerShell, zwlr_layer_shell_v1_interface, 1)) return;
	if (reg.handle(xdgOutputManager, zxdg_output_manager_v1_interface, 3)) return;
	if (reg.handle(xdgWmBase, xdg_wm_base_interface, 2)) {
		xdg_wm_base_add_listener(xdgWmBase, &xdgWmBaseListener, nullptr);