summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2003-03-29 03:18:11 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2003-03-29 03:18:11 +0000
commita116f2c6310db702e377e9cd1a95c9a980aba5ae (patch)
tree1e92192f3f75f013c31abb2dd4e417cc4912822a /openbox/action.c
parent7f5514aeb7bb8d84c7b038a08a57ee2d55e310f1 (diff)
Menu data structures basically completed.
Need the engine support still, parser, and controllers.
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 521e3135..02420346 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -155,6 +155,10 @@ Action *action_from_string(char *name)
} else if (!g_ascii_strcasecmp(name, "exit")) {
a = action_new(action_exit);
}
+ else if (!g_ascii_strcasecmp(name, "showmenu")) {
+ a = action_new(action_showmenu);
+ }
+
return a;
}
@@ -623,10 +627,13 @@ void action_resize(union ActionData *data)
if (!c || !client_normal(c)) return;
+ /* XXX window snapping/struts */
+
dispatch_resize(c, &w, &h, data->resize.corner);
w -= c->frame->size.left + c->frame->size.right;
h -= c->frame->size.top + c->frame->size.bottom;
+
client_configure(c, data->resize.corner, c->area.x, c->area.y, w, h,
TRUE, data->resize.final);
}
@@ -641,3 +648,8 @@ void action_exit(union ActionData *data)
{
ob_shutdown = TRUE;
}
+
+void action_showmenu(union ActionData *data)
+{
+ g_message(__FUNCTION__);
+}