all repos — openbox @ 75ee81d9bf47739b4a8f092d3247465c45684e77

openbox fork - make it a bit more like ryudo

add focusraise
Dana Jansens danakj@orodu.net
commit

75ee81d9bf47739b4a8f092d3247465c45684e77

parent

78e64a0afffc29c3bbe019ee4add563c46d05dca

2 files changed, 12 insertions(+), 0 deletions(-)

jump to
M openbox/action.copenbox/action.c

@@ -51,6 +51,12 @@ {

client_iconify(data->client.c, TRUE, TRUE); } +void action_focusraise(union ActionData *data) +{ + client_focus(data->client.c); + stacking_raise(data->client.c); +} + void action_raise(union ActionData *data) { stacking_raise(data->client.c);

@@ -395,6 +401,8 @@ Client *c = data->move.c;

int x = data->move.x; int y = data->move.y; + /* XXX window snapping/struts */ + client_configure(c, Corner_TopLeft, x, y, c->area.width, c->area.height, TRUE, data->move.final); }

@@ -404,6 +412,8 @@ {

Client *c = data->resize.c; int w = data->resize.x - c->frame->size.left - c->frame->size.right; int h = data->resize.y - c->frame->size.top - c->frame->size.bottom; + + /* XXX window snapping/struts */ client_configure(c, data->resize.corner, c->area.x, c->area.y, w, h, TRUE, data->resize.final);
M openbox/action.hopenbox/action.h

@@ -100,6 +100,8 @@ void action_raise(union ActionData *data);

/* ClientAction */ void action_lower(union ActionData *data); /* ClientAction */ +void action_focusraise(union ActionData *data); +/* ClientAction */ void action_close(union ActionData *data); /* ClientAction */ void action_shade(union ActionData *data);