+static void
+reshape_julia (ModeInfo *mi, int w, int h)
+{
+ init_julia (mi);
+}
+
+
+ENTRYPOINT Bool
+julia_handle_event (ModeInfo *mi, XEvent *event)
+{
+ juliastruct *jp = &julias[MI_SCREEN(mi)];
+
+ if (event->xany.type == ButtonPress &&
+ event->xbutton.button == Button1)
+ {
+ jp->button_down_p = True;
+ jp->mouse_x = event->xbutton.x;
+ jp->mouse_y = event->xbutton.y;
+ return True;
+ }
+ else if (event->xany.type == ButtonRelease &&
+ event->xbutton.button == Button1)
+ {
+ jp->button_down_p = False;
+ return True;
+ }
+ else if (event->xany.type == MotionNotify && jp->button_down_p)
+ {
+ jp->mouse_x = event->xmotion.x;
+ jp->mouse_y = event->xmotion.y;
+ return True;
+ }
+
+ return False;
+}
+
+
+