Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Fix for iir filter hanging xorg
Browse files Browse the repository at this point in the history
  • Loading branch information
hugegreenbug committed May 4, 2015
1 parent 8ad1db1 commit 049526e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions patches/iir_filter_fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff -ruN libgestures/include/gestures/include/iir_filter_interpreter.h libgestures.new/include/gestures/include/iir_filter_interpreter.h
--- libgestures/include/gestures/include/iir_filter_interpreter.h 2015-05-03 21:53:49.979904775 -0400
+++ libgestures.new/include/gestures/include/iir_filter_interpreter.h 2015-05-03 20:52:04.102016136 -0400
@@ -78,6 +78,8 @@
virtual void DoubleWasWritten(DoubleProperty* prop);

private:
+ map<short, IoHistory, kMaxFingers> histories_;
+
// y[0] = b[0]*x[0] + b[1]*x[1] + b[2]*x[2] + b[3]*x[3]
// - (a[1]*y[1] + a[2]*y[2])
DoubleProperty b0_, b1_, b2_, b3_, a1_, a2_;
@@ -90,7 +92,6 @@
// Whether IIR filter should be used. Put as a member varible for
// unittest purpose.
bool using_iir_;
- map<short, IoHistory, kMaxFingers> histories_;
};

} // namespace gestures

0 comments on commit 049526e

Please sign in to comment.