Remove surface commits where it is unecessary and wrong

This commit is contained in:
Willow Barraco 2023-09-06 14:24:48 +02:00
parent 8bdc761d9b
commit b1890848d5
No known key found for this signature in database
GPG Key ID: EABA44759877E02A

5
main.c
View File

@ -326,7 +326,6 @@ display_handle_geometry(void *data, struct wl_output *wl_output, int x, int y,
if (layer_surface) {
zwlr_layer_surface_v1_set_size(layer_surface, 0, height);
zwlr_layer_surface_v1_set_exclusive_zone(layer_surface, height);
wl_surface_commit(draw_surf.surf);
}
}
@ -485,10 +484,6 @@ show() {
NULL);
wl_surface_commit(draw_surf.surf);
wl_display_roundtrip(display);
kbd_resize(&keyboard, layouts, NumLayouts);
drwsurf_flip(&draw_surf);
hidden = false;
}