summaryrefslogtreecommitdiff
path: root/windowcontextandmanipulation.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'windowcontextandmanipulation.mdwn')
-rw-r--r--windowcontextandmanipulation.mdwn10
1 files changed, 5 insertions, 5 deletions
diff --git a/windowcontextandmanipulation.mdwn b/windowcontextandmanipulation.mdwn
index 7227607..1de96d9 100644
--- a/windowcontextandmanipulation.mdwn
+++ b/windowcontextandmanipulation.mdwn
@@ -29,7 +29,7 @@ The mode parameter coud be one of the following values (defined in enumeration x
### 2. Setting the window name and icon name
-The first thing we want to do would be to set the name for our window. This is done using the xcb\_change\_property() function. This name may be used by the window manager as the title of the window (in the title bar), in a task list, etc. The property atom to use to set the name of a window is XCB\_ATOM\_WM\_NAME (and XCB\_ATOM\_WM\_ICON_NAME for the iconified window) and its type is XCB\_ATOM\_STRING. Here is an example of utilization:
+The first thing we want to do would be to set the name for our window. This is done using the xcb\_change\_property() function. This name may be used by the window manager as the title of the window (in the title bar), in a task list, etc. The property atom to use to set the name of a window is XCB\_ATOM\_WM\_NAME (and XCB\_ATOM\_WM\_ICON\_NAME for the iconified window) and its type is XCB\_ATOM\_STRING. Here is an example of utilization:
#include <string.h>
@@ -80,7 +80,7 @@ The first thing we want to do would be to set the name for our window. This is d
char *iconTitle = "Hello World ! (iconified)";
xcb_change_property (connection,
XCB_PROP_MODE_REPLACE,
- windows,
+ window,
XCB_ATOM_WM_ICON_NAME,
XCB_ATOM_STRING,
8,
@@ -100,9 +100,9 @@ The first thing we want to do would be to set the name for our window. This is d
return 0;
}
-Note: the use of the atoms needs our program to be compiled and linked against xcb_atom, so that we have to use
+Note: the use of the atoms needs our program to be compiled and linked against xcb\_atom, so that we have to use
- gcc prog.c -o prog `pkg-config --cflags --libs xcb_atom`
+ gcc prog.c -o prog `pkg-config --cflags --libs xcb-atom`
...for the program to compile fine.
@@ -126,7 +126,7 @@ Un-mapping a window is also simple. You use the function
xcb_void_cookie_t xcb_unmap_window (xcb_connection_t *c,
xcb_window_t window );
-The utilization of this function is the same as xcb_map_window().
+The utilization of this function is the same as xcb\_map\_window().
### 2. Configuring a window