mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-03-13 02:42:47 +01:00
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 <proycon@anaproy.nl>
This commit is contained in:
parent
f540cf36fa
commit
9d6696fb23
1
main.c
1
main.c
@ -405,6 +405,7 @@ show(int sigint) {
|
|||||||
wl_surface_commit(draw_surf.surf);
|
wl_surface_commit(draw_surf.surf);
|
||||||
|
|
||||||
wl_display_roundtrip(display);
|
wl_display_roundtrip(display);
|
||||||
|
kbd_resize(&keyboard, layouts, NumLayouts);
|
||||||
drwsurf_flip(&draw_surf);
|
drwsurf_flip(&draw_surf);
|
||||||
|
|
||||||
hidden = false;
|
hidden = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user