diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-09 07:16:38 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-09 07:16:38 +0000 |
| commit | 8fe0cb8989c1fe12b30b9030b446345f25340d35 (patch) | |
| tree | b6153a2844ff8a1872d53bf0c843f6079db6f8f8 /openbox/mouse.c | |
| parent | 0f544808b8372a6c8a2cbfae214f2803dd3c6170 (diff) | |
no more interactive mouse actions, they are evil etc. actions now "feel" much more solid. if move/resizing a window while changing workspaces, it will follow.
Diffstat (limited to 'openbox/mouse.c')
| -rw-r--r-- | openbox/mouse.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/openbox/mouse.c b/openbox/mouse.c index 25068401..ab628ff3 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -107,20 +107,23 @@ static gboolean fire_binding(ObMouseAction a, ObFrameContext context, if (it == NULL) return FALSE; for (it = b->actions[a]; it; it = it->next) - action_run_mouse(it->data, c, context, state, button, x, y); + action_run_mouse(it->data, c, state, button, x, y); return TRUE; } -void mouse_event(ObClient *client, ObFrameContext context, XEvent *e) +void mouse_event(ObClient *client, XEvent *e) { static Time ltime; static guint button = 0, state = 0, lbutton = 0; - static Window lwindow = None; static int px, py; + + ObFrameContext context; gboolean click = FALSE; gboolean dclick = FALSE; + context = frame_context(client, e->xany.window); + switch (e->type) { case ButtonPress: px = e->xbutton.x_root; |
