mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Address review feedback from @emersion
This commit is contained in:
parent
053b51c3ff
commit
5d444b34f6
3 changed files with 31 additions and 25 deletions
|
|
@ -216,7 +216,8 @@ int main(int argc, char **argv) {
|
|||
|
||||
wl_list_init(&state.surfaces);
|
||||
state.xkb.context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
|
||||
assert(state.display = wl_display_connect(NULL));
|
||||
state.display = wl_display_connect(NULL);
|
||||
assert(state.display);
|
||||
|
||||
struct wl_registry *registry = wl_display_get_registry(state.display);
|
||||
wl_registry_add_listener(registry, ®istry_listener, &state);
|
||||
|
|
@ -236,8 +237,8 @@ int main(int argc, char **argv) {
|
|||
wl_list_for_each(surface, &state.surfaces, link) {
|
||||
surface->image = background_image;
|
||||
|
||||
assert(surface->surface =
|
||||
wl_compositor_create_surface(state.compositor));
|
||||
surface->surface = wl_compositor_create_surface(state.compositor);
|
||||
assert(surface->surface);
|
||||
|
||||
surface->layer_surface = zwlr_layer_shell_v1_get_layer_surface(
|
||||
state.layer_shell, surface->surface, surface->output,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue