From 9d6696fb23dac4ee334cc5f3aa10eaf63c8f0a3b Mon Sep 17 00:00:00 2001 From: ArenM Date: Tue, 5 Jul 2022 00:01:39 -0400 Subject: [PATCH] call kbd_resize when showing Since layer_surface_configure was changed to only call kbd_resize when an output dimension changed, kbd_resize doesn't get called if the keyboard was hidden and is being shown again, meaning it doesn't tell the compositor about the scale. This causes it to only output the top-right quarter of the keybaord stretched to the entire window size after a SIGUSR1 + SIGUSR2 cycle with the display scale set to 2. Signed-off-by: Maarten van Gompel --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index dc964e7..dffd31f 100644 --- a/main.c +++ b/main.c @@ -405,6 +405,7 @@ show(int sigint) { wl_surface_commit(draw_surf.surf); wl_display_roundtrip(display); + kbd_resize(&keyboard, layouts, NumLayouts); drwsurf_flip(&draw_surf); hidden = false;