- for (int i=0; i<BUTTONS; ++i)
- delete _posqueue[i];
-}
-
-
-void Actions::insertPress(const XButtonEvent &e)
-{
- ButtonPressAction *a = _posqueue[BUTTONS - 1];
- // rm'd the last one, shift them all down one
- for (int i = BUTTONS-1; i > 0; --i) {
- _posqueue[i] = _posqueue[i-1];
- }
- _posqueue[0] = a;
- a->win = e.window;
- a->button = e.button;
- a->pos = otk::Point(e.x_root, e.y_root);
-
- Client *c = openbox->findClient(e.window);
- if (c) a->clientarea = c->area();