From a116f2c6310db702e377e9cd1a95c9a980aba5ae Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Sat, 29 Mar 2003 03:18:11 +0000 Subject: Menu data structures basically completed. Need the engine support still, parser, and controllers. --- openbox/action.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'openbox/action.c') 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__); +} -- cgit v1.2.3