diff --git a/doc/tutorial/index.html b/doc/tutorial/index.html
index 75e1f75..c540426 100644
--- a/doc/tutorial/index.html
+++ b/doc/tutorial/index.html
@@ -178,8 +178,9 @@
level GUI toolkit like Motif,
LessTiff,
GTK,
- QT or
- EWL, or use
+ QT,
+ EWL,
+ ETK, or use
Cairo.
However,
we need to start somewhere. More than this, knowing how things
@@ -2327,7 +2328,7 @@ int main ()
while (1) {
e = xcb_poll_for_event(c);
if (e) {
- switch (e->response_type) {
+ switch (e->response_type & ~0x80) {
case XCB_EXPOSE: {
char *text;
@@ -3740,7 +3741,7 @@ int main ()
while (1) {
e = xcb_poll_for_event(c);
if (e) {
- switch (e->response_type) {
+ switch (e->response_type & ~0x80) {
case XCB_EXPOSE: {
char *text;