summaryrefslogtreecommitdiff
path: root/openbox/frame.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/frame.h')
-rw-r--r--openbox/frame.h10
1 files changed, 10 insertions, 0 deletions
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);