Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sam Kantor
cs349_w18_examples
Commits
00145a7a
Commit
00145a7a
authored
Feb 13, 2018
by
Keiko Katsuragawa
Browse files
fixed typo
parent
62cd1aa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
x/1-5-Events/eventloop.cpp
View file @
00145a7a
...
...
@@ -219,7 +219,7 @@ void initX(int argc, char* argv[], XInfo& xinfo) {
XSetBackground
(
xinfo
.
display
,
xinfo
.
gc
,
background
);
XSetForeground
(
xinfo
.
display
,
xinfo
.
gc
,
foreground
);
// Tell the window
manager
what input events you want.
// Tell the
base
window
system
what input events you want.
// ButtomMotionMask: The client application receives MotionNotify events only when at least one button is pressed.
XSelectInput
(
xinfo
.
display
,
xinfo
.
window
,
ButtonPressMask
|
KeyPressMask
|
ButtonMotionMask
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment