fix and document window width on screen width dependency

This commit is contained in:
ailin-nemui 2018-10-01 09:13:15 +02:00
commit ca1ec21dc2
2 changed files with 3 additions and 3 deletions

View file

@ -252,9 +252,9 @@ MAIN_WINDOW_REC *mainwindow_create(int right)
}
g_slist_free(line);
} else {
if (MAIN_WINDOW_TEXT_WIDTH(parent) <
2* NEW_WINDOW_WIDTH)
if (MAIN_WINDOW_TEXT_WIDTH(parent) < 2 * NEW_WINDOW_WIDTH) {
parent = find_window_with_room_right();
}
if (parent == NULL)
return NULL; /* not enough space */