[Xcb-commit] libxcb: doc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Sep 28 22:54:02 UTC 2022
doc/tutorial/index.html | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit e2ee5aabe9f731b7231b0d4a5a21367d1aced6ed
Author: Uli Schlachter <psychon at znc.in>
Date: Wed Sep 14 14:53:35 2022 +0200
Improve tutorial example
This tutorial example only handles XCB_EXPOSURE and XCB_KEY_RELEASE
events and ignores everything else. Thus, there is no point in asking
for more kinds of events.
A while ago, I ported this tutorial to x11rb [1]. Recently, I received a
pull request [2] removing these unnecessary event masks. This commit is
thus only partially by me and the 'issue' was originally found by the
author of [2].
[1]: https://github.com/psychon/x11rb/blob/master/x11rb/examples/tutorial.rs
[2]: https://github.com/psychon/x11rb/pull/754
Signed-off-by: Uli Schlachter <psychon at znc.in>
diff --git a/doc/tutorial/index.html b/doc/tutorial/index.html
index ea08337..1bc9f2e 100644
--- a/doc/tutorial/index.html
+++ b/doc/tutorial/index.html
@@ -2297,9 +2297,7 @@ int main ()
values[0] = screen->white_pixel;
values[1] =
XCB_EVENT_MASK_KEY_RELEASE |
- XCB_EVENT_MASK_BUTTON_PRESS |
- XCB_EVENT_MASK_EXPOSURE |
- XCB_EVENT_MASK_POINTER_MOTION;
+ XCB_EVENT_MASK_EXPOSURE;
cookie_window = xcb_create_window_checked (c,
screen->root_depth,
window, screen->root,
More information about the xcb-commit
mailing list