summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilianum <Maximilianum@web>2012-12-11 06:33:20 -0800
committerXCB site <xcb@freedesktop.org>2012-12-11 06:33:20 -0800
commitcc4d811d171844b87982fbbb81e4537ede036a64 (patch)
tree458749961502060fe9cb98ffb709a3ad7a27215e
parent9d575ab7ac867382979f3425515bb7640369c945 (diff)
those are the correct names of the mask for enter and leave mouse
-rw-r--r--tutorial/events.mdwn4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/events.mdwn b/tutorial/events.mdwn
index f13bef6..9d0670b 100644
--- a/tutorial/events.mdwn
+++ b/tutorial/events.mdwn
@@ -244,8 +244,8 @@ These all generate events of this type:
Another type of event that applications might be interested in, is a mouse pointer entering a window the program controls, or leaving such a window. Some programs use these events to show the user that the application is now in focus. In order to register for such an event type, we should add one (or more) of the following masks when we create our window:
-* xcb_event_enter_window_t: notify us when the mouse pointer enters any of our controlled windows.
-* xcb_event_leave_window_t: notify us when the mouse pointer leaves any of our controlled windows.
+ XCB_EVENT_MASK_ENTER_WINDOW // notify us when the mouse pointer enters any of our controlled windows.
+ XCB_EVENT_MASK_LEAVE_WINDOW // notify us when the mouse pointer leaves any of our controlled windows.
The structure to be checked for in our events loop is the same for these two events, and is the following: