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); |
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 |
{ |
{ |