Skip to content

Commit

Permalink
Additional null check for rofi
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl-github-acc committed Sep 4, 2023
1 parent fd0eaad commit a4b6aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ focusclient(Client *c, int lift)

client_activate_surface(old, 0);
}
if (old_c->foreign_toplevel && old_c->mon && old_c->mon->wlr_output) {
if (old_c && old_c->foreign_toplevel && old_c->mon && old_c->mon->wlr_output) {
wlr_foreign_toplevel_handle_v1_output_leave(old_c->foreign_toplevel, old_c->mon->wlr_output);
}
}
Expand Down

0 comments on commit a4b6aa4

Please sign in to comment.