summaryrefslogtreecommitdiff
path: root/src/actions.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-19 19:28:11 +0000
committerDana Jansens <danakj@orodu.net>2003-02-19 19:28:11 +0000
commitfeaf3ac4e5847d27e3747b09e7443915afa97b0b (patch)
tree6548af5ed3f15b15b2d3e4a66a2b9795b0a4e18b /src/actions.cc
parent1dac42d9ed074bcd44f9d1016b0971ae473cc2eb (diff)
time to refactor shit hard
Diffstat (limited to 'src/actions.cc')
-rw-r--r--src/actions.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/actions.cc b/src/actions.cc
index 9659b2f0..c629006a 100644
--- a/src/actions.cc
+++ b/src/actions.cc
@@ -145,7 +145,8 @@ void Actions::buttonReleaseHandler(const XButtonEvent &e)
data.action = MouseAction::Click;
openbox->bindings()->fireButton(&data);
- long dblclick = openbox->screen(screen)->config().double_click_delay;
+ long dblclick = 0;
+ python_get_long("double_click_delay", &dblclick);
if (e.time - _release.time < (unsigned)dblclick &&
_release.win == e.window && _release.button == e.button) {
@@ -303,7 +304,8 @@ void Actions::motionHandler(const XMotionEvent &e)
if (!_dragging) {
int dx = x_root - _press.pos.x();
int dy = y_root - _press.pos.y();
- long threshold = openbox->screen(screen)->config().drag_threshold;
+ long threshold = 0;
+ python_get_long("drag_threshold", &threshold);
if (!(std::abs(dx) >= threshold || std::abs(dy) >= threshold))
return; // not at the threshold yet
}