fix(init): properly handle null geometry

This commit is contained in:
Jeremy Attali 2019-12-31 00:41:21 -05:00
parent af8035bf8c
commit c4ea305ae6

View File

@ -510,6 +510,11 @@ static bool load_layout(struct swappy_state *state) {
static bool init_gtk_window(struct swappy_state *state) {
g_info("activating application ----------");
if (!state->geometry) {
g_critical("no geometry found, did you use -f or -g option?");
return false;
}
if (!load_layout(state)) {
return false;
}