Mercurial > emacs
changeset 4606:0866f021a2cc
(XScreenNumberOfScreen): New function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 13 Aug 1993 22:16:38 +0000 |
parents | 84556eadaacd |
children | 81ee2854ccb5 |
files | src/xfns.c |
diffstat | 1 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Fri Aug 13 21:40:37 1993 +0000 +++ b/src/xfns.c Fri Aug 13 22:16:38 1993 +0000 @@ -3481,6 +3481,24 @@ #endif /* 0 */ #ifdef HAVE_X11 + +#ifndef HAVE_XSCREENNUMBEROFSCREEN +int +XScreenNumberOfScreen (scr) + register Screen *scr; +{ + register Display *dpy = scr->display; + register Screen *dpyscr = dpy->screens; + register int i; + + for (i = 0; i < dpy->nscreens; i++, dpyscr++) + if (scr == dpyscr) + return i; + + return -1; +} +#endif /* not HAVE_XSCREENNUMBEROFSCREEN */ + Visual * select_visual (screen, depth) Screen *screen;