From 18be7e2b9df2b92ff6d1775692e1e76d1d51df7b Mon Sep 17 00:00:00 2001 From: Scoopta Date: Fri, 15 May 2020 17:36:45 -0700 Subject: [PATCH] Changed the check when doing a surface size update to check for the right thing shell != NULL --- src/wofi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index e3405d9..17d6f83 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -444,7 +444,7 @@ static void expand(GtkExpander* expander, gpointer data) { } static void update_surface_size(void) { - if(wl != NULL) { + if(shell != NULL) { zwlr_layer_surface_v1_set_size(wlr_surface, width, height); wl_surface_commit(wl_surface); wl_display_roundtrip(wl); @@ -1570,6 +1570,7 @@ void wofi_init(struct map* _config) { if(shell == NULL) { fprintf(stderr, "Compositor does not support wlr_layer_shell protocol, switching to normal window mode\n"); + normal_window = true; goto normal_win; }