diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-25 18:40:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-25 18:40:04 +0000 |
| commit | 0e9c5049a549ffca05f7bfcf42d9678c0fd5cce3 (patch) | |
| tree | bf5b879d52a8524c94202a47d134a8e94e4dfcce /plugins/mouse/mouse.c | |
| parent | 4b90b241ce07101b803f7920e9c4106561da8a19 (diff) | |
use the alst button press for clicks instead of teh fisrt. it make sno diff to me really and this makes it work when you grab the pointer on the click, without leaving the mouse plugin in a weird state.
Diffstat (limited to 'plugins/mouse/mouse.c')
| -rw-r--r-- | plugins/mouse/mouse.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/mouse/mouse.c b/plugins/mouse/mouse.c index 5bd76caa..26b23cd8 100644 --- a/plugins/mouse/mouse.c +++ b/plugins/mouse/mouse.c @@ -274,12 +274,10 @@ static void event(ObEvent *e, void *foo) context = frame_context(e->data.x.client, e->data.x.e->xbutton.window); - if (!button) { - px = e->data.x.e->xbutton.x_root; - py = e->data.x.e->xbutton.y_root; - button = e->data.x.e->xbutton.button; - state = e->data.x.e->xbutton.state; - } + px = e->data.x.e->xbutton.x_root; + py = e->data.x.e->xbutton.y_root; + button = e->data.x.e->xbutton.button; + state = e->data.x.e->xbutton.state; fire_button(MouseAction_Press, context, e->data.x.client, e->data.x.e->xbutton.state, |
