summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEamonWalsh <EamonWalsh@web>2010-08-04 21:46:09 -0700
committerXCB site <xcb@freedesktop.org>2010-08-04 21:46:09 -0700
commitff3ba9cfab9eab8dd4a1b568a74f8edade1ff2f9 (patch)
treea0a2e6ee4f68a2fe1fe63c0012e22e1a55ae03bb
parent8f85751325345dda6fb7f63bcb3b5f5669a04200 (diff)
fdo bug 29392: Tutorial uses wrong function
-rw-r--r--tutorial/events.mdwn2
1 files changed, 1 insertions, 1 deletions
diff --git a/tutorial/events.mdwn b/tutorial/events.mdwn
index 38e906d..f13bef6 100644
--- a/tutorial/events.mdwn
+++ b/tutorial/events.mdwn
@@ -59,7 +59,7 @@ If the window has already been created, we can use the xcb\_change\_window\_attr
const static uint32_t values[] = { XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_BUTTON_PRESS };
- xcb_configure_window (connection, window, XCB_CW_EVENT_MASK, values);
+ xcb_change_window_attributes (connection, window, XCB_CW_EVENT_MASK, values);
Note: A common programmer oversight is adding code to handle new event types while forgetting to add the masks for these events in the creation of the window. This leads to programmers debugging for hours, wondering "Why doesn't my program notice that I released the button?", only to find that they registered button press events but not button release events.