[Xcb-commit] tutorial

XCB site xcb at freedesktop.org
Tue Dec 11 06:33:20 PST 2012


 tutorial/events.mdwn |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cc4d811d171844b87982fbbb81e4537ede036a64
Author: Maximilianum <Maximilianum at web>
Date:   Tue Dec 11 06:33:20 2012 -0800

    those are the correct names of the mask for enter and leave mouse

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:
 


More information about the xcb-commit mailing list