projects
/
winnie
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*work in progress* quick backup
[winnie]
/
src
/
keyboard.cc
diff --git
a/src/keyboard.cc
b/src/keyboard.cc
index
810607a
..
6275227
100644
(file)
--- a/
src/keyboard.cc
+++ b/
src/keyboard.cc
@@
-62,9
+62,11
@@
void destroy_keyboard()
}
ttystate = CANONICAL;
}
ttystate = CANONICAL;
- close(dev_fd);
- dev_fd = -1;
+ if(dev_fd != -1) {
+ close(dev_fd);
+ dev_fd = -1;
+ }
}
int get_keyboard_fd()
}
int get_keyboard_fd()
@@
-79,9
+81,9
@@
void process_keyboard_event()
return;
}
return;
}
- if(key == 'q') {
+/* if(key == 'q') {
exit(0);
exit(0);
- }
+ }*/
Window *focused_win = wm->get_focused_window();
if(focused_win) {
Window *focused_win = wm->get_focused_window();
if(focused_win) {