if (!mono_p)
{
+ if (st->ncolors < 1) st->ncolors = 1;
st->colors = (XColor *) malloc (st->ncolors * sizeof(*st->colors));
make_smooth_colormap (st->xgwa.screen, st->xgwa.visual, st->cmap,
imsmap_event (Display *dpy, Window window, void *closure, XEvent *event)
{
struct state *st = (struct state *) closure;
- if (event->xany.type == ButtonPress)
+ if (screenhack_event_helper (dpy, window, event))
{
init_map (st);
return True;
"*iterations: 7",
"*delay: 5",
"*delay2: 20000",
-#ifdef USE_IPHONE
+#ifdef HAVE_MOBILE
"*ignoreRotation: True",
#endif
0