mirror of
https://github.com/jtheoof/swappy.git
synced 2024-08-17 02:30:47 +03:00
fix(init): properly handle null geometry
This commit is contained in:
parent
af8035bf8c
commit
c4ea305ae6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user