Changeset 1259 for code/branches/input/src/core/SignalHandler.cc
- Timestamp:
- May 12, 2008, 7:06:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/core/SignalHandler.cc
r1240 r1259 65 65 66 66 // prepare for restoring XAutoKeyRepeat 67 68 69 { 70 71 72 73 74 75 76 67 Display* display; 68 if ((display = XOpenDisplay(0))) 69 { 70 XKeyboardState oldState; 71 XGetKeyboardControl(display, &oldState); 72 if (oldState.global_auto_repeat == AutoRepeatModeOn) 73 bXAutoKeyRepeatOn_ = true; 74 else 75 bXAutoKeyRepeatOn_ = false; 76 XCloseDisplay(display); 77 77 } 78 78 else
Note: See TracChangeset
for help on using the changeset viewer.