8880d215f8
YeahLaunch is a simple animated autohiding menu for launching applications. Based on a submission by Scott Vokes <vokes dot s at gmail dot com> (maintainer) inputs, testing, feedback and ok steven@
15 lines
624 B
Plaintext
15 lines
624 B
Plaintext
$OpenBSD: patch-yeahlaunch_c,v 1.1.1.1 2007/06/04 16:39:54 ajacoutot Exp $
|
|
--- yeahlaunch.c.orig Mon Jun 4 17:44:48 2007
|
|
+++ yeahlaunch.c Mon Jun 4 17:44:55 2007
|
|
@@ -104,6 +104,10 @@ int main(int argc, char *argv[])
|
|
|
|
}
|
|
font = XLoadQueryFont(dpy, opt_font);
|
|
+ if (font == NULL) {
|
|
+ fprintf(stderr, "Font does not exist! exiting...\n");
|
|
+ exit(1);
|
|
+ }
|
|
height = font-> /* max_bounds. */ ascent + font-> /* max_bounds. */ descent + 3;
|
|
XAllocNamedColor(dpy, DefaultColormap(dpy, screen), opt_fg, &fg, &dummy);
|
|
XAllocNamedColor(dpy, DefaultColormap(dpy, screen), opt_afg, &afg, &dummy);
|