If more monitors are present in the system, the window is too big and information
cannot be visible correctly.
Fixes: https://github.com/alsa-project/alsa-tools/issues/20
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
int neww = screen ? (gdk_screen_get_width(screen)*3)/4 : 800;
int newh = screen ? (gdk_screen_get_height(screen)*3)/4 : 600;
- gtk_window_set_default_size(GTK_WINDOW(dlg), neww, newh);
+ gtk_window_set_default_size(GTK_WINDOW(dlg), MIN(1600, neww), MIN(1000, newh));
}
gtk_dialog_run(dlg);