Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

NAME

XRootWindow, XRootWindowOfScreen, RootWindow, RootWindowOfScreen − return root window ID. 

Synopsis

Window XRootWindow(display, screen_number)

      Display *display;
      int screen_number;

Window XRootWindowOfScreen(screen)

      Screen *screen;

Arguments

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

screen_number
Specifies the appropriate screen number on the host server.

screenSpecifies the appropriate Screen structure. 

Description

XRootWindow() and XRootWindowOfScreen() return the root window of the specified screen.  The only difference between them is their arguments.  These are useful as arguments of functions that need a drawable of a particular screen (such as XCreatePixmap() or XCreateGC()), and for creating top-level windows.  The C language macros RootWindow() and RootWindowOfScreen() are equivalent and slightly more efficient. 

See Also

XDefaultRootWindow*(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026