From bd9106c5ee698dac15a8862504a2a104c9701a08 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Thu, 15 Oct 2020 19:59:32 +0200 Subject: [PATCH] Set layer-shell size to 1,1 on first commit The commit with no set_size was interpreted as having set_size of 0,0, which is no longer valid if anchors are not set. However, are just configuring our surface, not yet committing content. As workaround, specify a bogus 1,1 size to begin with. Closes: https://github.com/kennylevinsen/wldash/issues/36 --- src/app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.rs b/src/app.rs index 07c8f22..eb524be 100644 --- a/src/app.rs +++ b/src/app.rs @@ -99,6 +99,7 @@ impl AppInner { .unwrap(); shell_surface.set_keyboard_interactivity(1); + shell_surface.set_size(1, 1); surface.set_buffer_scale(scale as i32); surface.commit(); (surface, shell_surface)