summaryrefslogtreecommitdiff
path: root/XCBConnectionOfDisplay.mdwn
diff options
context:
space:
mode:
authorTravis Spencer <tspencer@cs.pdx.edu>2005-08-01 10:29:08 -0800
committerTravis Spencer <tspencer@cs.pdx.edu>2005-08-01 10:29:08 -0800
commit9eecdebb6ad472fd28863ab3c57ea8f3bf7bc472 (patch)
tree7b07d0751467e35c9e730ea3ce9d0852e3d272b4 /XCBConnectionOfDisplay.mdwn
parent75ef4dc7a44faaa7070e618548bb149fe35d19d9 (diff)
XCBConnectionOfDisplay
Diffstat (limited to 'XCBConnectionOfDisplay.mdwn')
-rw-r--r--XCBConnectionOfDisplay.mdwn4
1 files changed, 2 insertions, 2 deletions
diff --git a/XCBConnectionOfDisplay.mdwn b/XCBConnectionOfDisplay.mdwn
index 1500dae..9ba8c3f 100644
--- a/XCBConnectionOfDisplay.mdwn
+++ b/XCBConnectionOfDisplay.mdwn
@@ -62,11 +62,11 @@ Some salient points in this example include the following:
- The `Display` object is cast to an `XCBConnection` object using `XCBConnectionOfDisplay`.
- After the cast, the connection is passed to various other XCB functions.
-Though this example is contrived, `XCBConnectionOfDisplay` is an esential part of the porting process. For example, say you have some function that takes a `Display` object. You can leave the prototype unchanged, in the body of the function cast it to an `XCBConnection`, and port only that function. The rest of the code can remain unchanged. In this way, the process of converting the application to use XCB is staggered as necessary, time, knowledge, and knowledge permit.
+Though this example is contrived, `XCBConnectionOfDisplay` is an essential part of the porting process. For example, say you have some function that takes a `Display` object. You can leave the prototype unchanged, in the body of the function cast it to an `XCBConnection`, and port only that function. The rest of the code can remain unchanged. In this way, the process of converting the application to use XCB is staggered as necessary, time, knowledge, and knowledge permit.
# Casting the Other Way
-How do you get a `Display` object given an `XCBConnection` object?
+How do you get a `Display` object given an `XCBConnection` object? You can't. So, if you find yourself needing to cast an `XCBConnection` to a `Display`, stop, rethink, and find another way to structure your code to work without the cast.
# See Also