/[oroborus]/oroborus/src/hints.c
ViewVC logotype

Diff of /oroborus/src/hints.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by dreamind, Tue Jul 2 02:32:11 2002 UTC revision 1.6 by dreamind, Tue Jul 2 10:24:07 2002 UTC
# Line 115  initNETHints () Line 115  initNETHints ()
115      XInternAtom (dpy, "_NET_NUMBER_OF_DESKTOPS", False);      XInternAtom (dpy, "_NET_NUMBER_OF_DESKTOPS", False);
116    net_atoms[NET_CURRENT_DESKTOP] =    net_atoms[NET_CURRENT_DESKTOP] =
117      XInternAtom (dpy, "_NET_CURRENT_DESKTOP", False);      XInternAtom (dpy, "_NET_CURRENT_DESKTOP", False);
118      net_atoms[NET_ACTIVE_WINDOW] =
119        XInternAtom (dpy, "_NET_ACTIVE_WINDOW", False);
120    XChangeProperty (dpy, root, XInternAtom (dpy, "_NET_SUPPORTED", False),    XChangeProperty (dpy, root, XInternAtom (dpy, "_NET_SUPPORTED", False),
121                     XA_ATOM, 32, PropModeReplace, (unsigned char *) net_atoms,                     XA_ATOM, 32, PropModeReplace, (unsigned char *) net_atoms,
122                     NET_ATOM_COUNT);                     NET_ATOM_COUNT);
# Line 349  getPropData (Window w, Atom prop, Atom t Line 351  getPropData (Window w, Atom prop, Atom t
351      return NULL;      return NULL;
352  }  }
353    
354    void
355    setFocusHint (Window w)
356    {
357    #ifdef DEBUG
358      printf ("entering setFocusHint\n");
359    #endif
360    
361      XChangeProperty (dpy, XDefaultRootWindow(dpy), net_atoms[NET_ACTIVE_WINDOW], XA_WINDOW, 32, PropModeReplace,
362                       (unsigned char *) &w, 1);
363    }
364    
365  int  int
366  equals (char *left, char *right)  equals (char *left, char *right)
367  {  {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26