diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-05-13 22:16:44 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-05-17 19:31:51 -0400 |
| commit | f307a3feabedd9bcadeaafd0fa8e1b1a60736eb2 (patch) | |
| tree | a00dea6e23e4561f2bd3cfe713c41dce14628d51 /openbox/frame.h | |
| parent | 09d1d0434ba5597fff7bea3ec4c5da88c94447e0 (diff) | |
allow multiple contexts separated by space in a mouse binding
example: context="Top Left Right Bottom"
Diffstat (limited to 'openbox/frame.h')
| -rw-r--r-- | openbox/frame.h | 10 |
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); |
