Changed the check when doing a surface size update to check for the right thing shell != NULL
This commit is contained in:
parent
f2f7974b3d
commit
18be7e2b9d
@ -444,7 +444,7 @@ static void expand(GtkExpander* expander, gpointer data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void update_surface_size(void) {
|
static void update_surface_size(void) {
|
||||||
if(wl != NULL) {
|
if(shell != NULL) {
|
||||||
zwlr_layer_surface_v1_set_size(wlr_surface, width, height);
|
zwlr_layer_surface_v1_set_size(wlr_surface, width, height);
|
||||||
wl_surface_commit(wl_surface);
|
wl_surface_commit(wl_surface);
|
||||||
wl_display_roundtrip(wl);
|
wl_display_roundtrip(wl);
|
||||||
@ -1570,6 +1570,7 @@ void wofi_init(struct map* _config) {
|
|||||||
|
|
||||||
if(shell == NULL) {
|
if(shell == NULL) {
|
||||||
fprintf(stderr, "Compositor does not support wlr_layer_shell protocol, switching to normal window mode\n");
|
fprintf(stderr, "Compositor does not support wlr_layer_shell protocol, switching to normal window mode\n");
|
||||||
|
normal_window = true;
|
||||||
goto normal_win;
|
goto normal_win;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user