Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 6, 2008, 3:30:26 PM (16 years ago)
Author:
rgrieder
Message:
  • trying to make the signalhandler do certain things..
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/input/src/core/SignalHandler.cc

    r1062 r1238  
    3535
    3636#include <assert.h>
     37#include <iostream>
    3738
    3839#include "Debug.h"
     
    5859  this->fileName = fileName;
    5960
     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
    6074  // make sure doCatch is only called once without calling dontCatch
    6175  assert( sigRecList.size() == 0 );
     
    120134      sigName = "SIGILL";
    121135      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    }
    122146  }
    123147
Note: See TracChangeset for help on using the changeset viewer.