/*
 * Copyright 1988, 1989, 1990, 1991 Massachusetts Institute of Technology
 */
#include"xpointer.h"
#include"../../Glib/Glib.h"
show_enable(event)
XEvent event;
{
  extern Display *dpy;
  extern Window root;
  
  extern GC normtext, brighttext;
  extern XFontStruct *normfont;
  extern VolumeList *volumelist;
  extern int cur_volume;
  extern XContext which_context, string_context;
  extern short DEBUG;

  GC realtext;
  char *temp;

  if (event.type == EnterNotify) realtext = brighttext;
  else realtext = normtext;

  XFindContext( dpy, event.xany.window, string_context, &temp);

  XDrawString(dpy, event.xany.window, realtext, 2, 
	      normfont->ascent,
	      temp, strlen(temp));
}

switch_enable(event)
     XEvent event;
{
  extern Display *dpy;
  extern int screen;
  extern XContext which_context;
  extern int cur_volume;
  extern int cur_mask;
  int *which;

  XFindContext( dpy, event.xany.window, which_context, (caddr_t *)&which);

  cur_mask ^= *which;

  draw_active();
}
