diff options
| author | Richard M. Stallman | 1993-08-13 22:16:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-08-13 22:16:38 +0000 |
| commit | 404daac1a18eb89ba78cd007af3f974ab5e9d93e (patch) | |
| tree | b513b6e928252070cdce67af397de29d9b2466a7 /src | |
| parent | b2fe4ec62d3469f47cdc6bd912d96d9b14d04e46 (diff) | |
| download | emacs-404daac1a18eb89ba78cd007af3f974ab5e9d93e.tar.gz emacs-404daac1a18eb89ba78cd007af3f974ab5e9d93e.zip | |
(XScreenNumberOfScreen): New function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index 64c58a5604f..32908d15d8d 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3481,6 +3481,24 @@ See the documentation of `x-rebind-key' for more information.") | |||
| 3481 | #endif /* 0 */ | 3481 | #endif /* 0 */ |
| 3482 | 3482 | ||
| 3483 | #ifdef HAVE_X11 | 3483 | #ifdef HAVE_X11 |
| 3484 | |||
| 3485 | #ifndef HAVE_XSCREENNUMBEROFSCREEN | ||
| 3486 | int | ||
| 3487 | XScreenNumberOfScreen (scr) | ||
| 3488 | register Screen *scr; | ||
| 3489 | { | ||
| 3490 | register Display *dpy = scr->display; | ||
| 3491 | register Screen *dpyscr = dpy->screens; | ||
| 3492 | register int i; | ||
| 3493 | |||
| 3494 | for (i = 0; i < dpy->nscreens; i++, dpyscr++) | ||
| 3495 | if (scr == dpyscr) | ||
| 3496 | return i; | ||
| 3497 | |||
| 3498 | return -1; | ||
| 3499 | } | ||
| 3500 | #endif /* not HAVE_XSCREENNUMBEROFSCREEN */ | ||
| 3501 | |||
| 3484 | Visual * | 3502 | Visual * |
| 3485 | select_visual (screen, depth) | 3503 | select_visual (screen, depth) |
| 3486 | Screen *screen; | 3504 | Screen *screen; |