1 /* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
3 action_list_run.h for the Openbox window manager
4 Copyright (c) 2011 Dana Jansens
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 See the COPYING file for a copy of the GNU General Public License.
24 typedef struct _ObActionListRun ObActionListRun;
28 /*! This structure holds data about the user event which triggers running an
29 action list and the filters/actions within it.
30 All action list executions must come from some user event, and this describes
33 struct _ObActionListRun {
34 ObUserAction user_act;
40 ObFrameContext pointer_context;
41 struct _ObClient *pointer_over;
43 struct _ObClient *target;
46 /*! Run an action list.
47 @acts The list of actions to run.
48 @state The current state of the keyboard modifiers.
49 @x The x coordinate of the pointer.
50 @y The y coordinate of the pointer.
51 @button The button used to initiate the action list (if a pointer
53 @con The frame context on which the pointer button was used to initiate the
55 @client The client on which the pointer button was used to initiate the
57 @return TRUE if an interactive action was started, or FALSE otherwise.
59 gboolean action_list_run(struct _ObActionList *acts,
66 struct _ObClient *client);