1XMapWindow(3) XLIB FUNCTIONS XMapWindow(3)
2
3
4
6 XMapWindow, XMapRaised, XMapSubwindows - map windows
7
9 int XMapWindow(Display *display, Window w);
10
11 int XMapRaised(Display *display, Window w);
12
13 int XMapSubwindows(Display *display, Window w);
14
16 display Specifies the connection to the X server.
17
18 w Specifies the window.
19
21 The XMapWindow function maps the window and all of its subwindows that
22 have had map requests. Mapping a window that has an unmapped ancestor
23 does not display the window but marks it as eligible for display when
24 the ancestor becomes mapped. Such a window is called unviewable. When
25 all its ancestors are mapped, the window becomes viewable and will be
26 visible on the screen if it is not obscured by another window. This
27 function has no effect if the window is already mapped.
28
29 If the override-redirect of the window is False and if some other
30 client has selected SubstructureRedirectMask on the parent window, then
31 the X server generates a MapRequest event, and the XMapWindow function
32 does not map the window. Otherwise, the window is mapped, and the X
33 server generates a MapNotify event.
34
35 If the window becomes viewable and no earlier contents for it are re‐
36 membered, the X server tiles the window with its background. If the
37 window's background is undefined, the existing screen contents are not
38 altered, and the X server generates zero or more Expose events. If
39 backing-store was maintained while the window was unmapped, no Expose
40 events are generated. If backing-store will now be maintained, a full-
41 window exposure is always generated. Otherwise, only visible regions
42 may be reported. Similar tiling and exposure take place for any newly
43 viewable inferiors.
44
45 If the window is an InputOutput window, XMapWindow generates Expose
46 events on each InputOutput window that it causes to be displayed. If
47 the client maps and paints the window and if the client begins process‐
48 ing events, the window is painted twice. To avoid this, first ask for
49 Expose events and then map the window, so the client processes input
50 events as usual. The event list will include Expose for each window
51 that has appeared on the screen. The client's normal response to an
52 Expose event should be to repaint the window. This method usually
53 leads to simpler programs and to proper interaction with window man‐
54 agers.
55
56 XMapWindow can generate a BadWindow error.
57
58 The XMapRaised function essentially is similar to XMapWindow in that it
59 maps the window and all of its subwindows that have had map requests.
60 However, it also raises the specified window to the top of the stack.
61
62 XMapRaised can generate a BadWindow error.
63
64 The XMapSubwindows function maps all subwindows for a specified window
65 in top-to-bottom stacking order. The X server generates Expose events
66 on each newly displayed window. This may be much more efficient than
67 mapping many windows one at a time because the server needs to perform
68 much of the work only once, for all of the windows, rather than for
69 each window.
70
71 XMapSubwindows can generate a BadWindow error.
72
74 BadWindow A value for a Window argument does not name a defined Window.
75
77 XChangeWindowAttributes(3), XConfigureWindow(3), XCreateWindow(3), XDe‐
78 stroyWindow(3), XRaiseWindow(3), XUnmapWindow(3)
79 Xlib - C Language X Interface
80
81
82
83X Version 11 libX11 1.7.2 XMapWindow(3)