~ubuntu-branches/ubuntu/hardy/kdebase-workspace/hardy-backports

« back to all changes in this revision

Viewing changes to kcontrol/input/mouse.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Richard A. Johnson
  • Date: 2008-05-02 23:57:34 UTC
  • mfrom: (1.2.1 upstream) (20.1.22 hardy)
  • Revision ID: james.westby@ubuntu.com-20080502235734-kwrykz4qcvunwqf4
Tags: 4:4.0.4-0ubuntu1~hardy1
* New upstream release (LP: #225994)
* Updated control file (LP: #220655)
* Updated install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
767
767
  XChangePointerControl( QX11Info::display(),
768
768
                         true, true, int(qRound(accelRate*10)), 10, thresholdMove);
769
769
 
770
 
  unsigned char map[20];
771
 
  num_buttons = XGetPointerMapping(QX11Info::display(), map, 20);
 
770
  // 256 might seems extreme, but X has already been known to return 32, 
 
771
  // and we don't want to truncate things. Xlib limits the table to 256 bytes,
 
772
  // so it's a good uper bound..
 
773
  unsigned char map[256];
 
774
  num_buttons = XGetPointerMapping(QX11Info::display(), map, 256);
 
775
 
772
776
  int remap=(num_buttons>=1);
773
777
  if (handedEnabled && (m_handedNeedsApply || force)) {
774
778
      if( num_buttons == 1 )