diff options
| author | Zach DeCook <zachdecook@librem.one> | 2024-01-14 15:54:52 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2024-01-14 15:54:52 -0500 |
| commit | 3996bf63f0368cb4506983ed9751125c7b670705 (patch) | |
| tree | 3f6f3900715e5dc5526822c7b54f16534644ba0c /main.c | |
| parent | 926b67f1e30771d47510a91cf19a0243e2ac0eb5 (diff) | |
| download | suggpicker-3996bf63f0368cb4506983ed9751125c7b670705.tar.gz | |
Fix crash on --hidden
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/main.c b/main.c index bf8a81a..2bedc63 100644 --- a/main.c +++ b/main.c @@ -256,9 +256,11 @@ display_handle_geometry(void *data, struct wl_output *wl_output, int x, int y, height = normal_height; } - 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); + 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); + } } static void |
