From f307a3feabedd9bcadeaafd0fa8e1b1a60736eb2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 13 May 2010 22:16:44 -0400 Subject: allow multiple contexts separated by space in a mouse binding example: context="Top Left Right Bottom" --- openbox/frame.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'openbox/frame.h') diff --git a/openbox/frame.h b/openbox/frame.h index 1130709b..8f1ed91b 100644 --- a/openbox/frame.h +++ b/openbox/frame.h @@ -221,6 +221,16 @@ void frame_release_client(ObFrame *self); ObFrameContext frame_context_from_string(const gchar *name); +/*! Parses a ObFrameContext from a string of space-separated context names. + @names The list of context names, the first of which is removed from the + string. + @cx The ObFrameContext is returned here. If an invalid name is found, this + is set to OB_FRAME_CONTEXT_NONE. + @return TRUE if there was something to read in @names, FALSE if it was an + empty input. +*/ +gboolean frame_next_context_from_string(gchar *names, ObFrameContext *cx); + ObFrameContext frame_context(struct _ObClient *self, Window win, gint x, gint y); -- cgit v1.2.3