Changeset 1238 for code/branches/input/src/core/SignalHandler.cc
- Timestamp:
- May 6, 2008, 3:30:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/core/SignalHandler.cc
r1062 r1238 35 35 36 36 #include <assert.h> 37 #include <iostream> 37 38 38 39 #include "Debug.h" … … 58 59 this->fileName = fileName; 59 60 61 // prepare for restoring XAutoKeyRepeat 62 if (display_ = XOpenDisplay(0)) 63 { 64 XGetKeyboardControl( display_, &bXAutoKeyRepeatOn_ ); 65 XCloseDisplay(display_); 66 } 67 else 68 { 69 std::cout << "Warning: couldn't open X display to restore XAutoKeyRepeat." << std::endl; 70 XAutoKeyRepeatOn_ = false; 71 } 72 73 60 74 // make sure doCatch is only called once without calling dontCatch 61 75 assert( sigRecList.size() == 0 ); … … 120 134 sigName = "SIGILL"; 121 135 break; 136 } 137 138 if (XAutoKeyRepeatOn_) 139 { 140 std::cout << "Trying to restore XAutoKeyRepeat" << std::endl; 141 if (display_ = XOpenDisplay(0)) 142 { 143 XAutoRepeatOn(display_); 144 XCloseDisplay(display_); 145 } 122 146 } 123 147
Note: See TracChangeset
for help on using the changeset viewer.