Display *display;
Window root;
+/* dialog windows */
+double dialog_ratio = .6;
/* status bar */
int bar_enabled = 1;
int bar_height = 0;
goto bad;
break;
+ case 'd':
+ if (!strncmp(var, "dialog_ratio",
+ strlen("dialog_ratio"))) {
+ dialog_ratio = atof(val);
+ if (dialog_ratio > 1.0 || dialog_ratio <= .3)
+ dialog_ratio = .6;
+ } else
+ goto bad;
+ break;
+
case 's':
if (!strncmp(var, "spawn_term", strlen("spawn_term")))
asprintf(&spawn_term[0], "%s", val); /* XXX args? */
mask = CWX | CWY | CWBorderWidth | CWWidth | CWHeight;
wc.border_width = 1;
if (win->transient) {
- /* XXX dialog window, make it bigger but not too big */
- win->g.w *= 2;
- win->g.h *= 2;
+ win->g.w = (double)WIDTH * dialog_ratio;
+ win->g.h = (double)HEIGHT * dialog_ratio;
}
wc.width = win->g.w;
wc.height = win->g.h;