]> Dogcows Code - chaz/openbox/commitdiff
add focusraise
authorDana Jansens <danakj@orodu.net>
Wed, 19 Mar 2003 17:24:03 +0000 (17:24 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 19 Mar 2003 17:24:03 +0000 (17:24 +0000)
openbox/action.c
openbox/action.h

index dfcd8d7e0634edf8ddb500fee7d4934eece1fe3b..009851411fb4a99e2d04c7c04edb074a049bfc48 100644 (file)
@@ -51,6 +51,12 @@ void action_iconify(union ActionData *data)
     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 @@ void action_move(union ActionData *data)
     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);
 }
@@ -405,6 +413,8 @@ void action_resize(union ActionData *data)
     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);
 }
index 0f277fa84e5eae9881df81e1276393ad637eb4dc..c8e004873bf50d26f37c6d9c50373feb826efcc9 100644 (file)
@@ -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);
This page took 0.02519 seconds and 4 git commands to generate.