summaryrefslogtreecommitdiff
path: root/openbox/actions/if.c
AgeCommit message (Collapse)Author
2014-04-25Fix thinko in if.c, *o in Stop can never be pointing at the right place.Mikael Magnusson
Use a file static boolean instead.
2014-04-10Break loop if is_true was set to false in IfMikael Magnusson
2014-04-10Don't segfault when there's no target in IfMikael Magnusson
2013-08-19Add window type to If as wellMikael Magnusson
This one required some extra helpers so is separate commit
2013-08-19Allow matching class, name and role in If actionMikael Magnusson
2013-08-19Add ForEach action which is like If but runs on all clientsMikael Magnusson
Also adds a Stop action that lets you stop running, in case you only want to run actions on the first match.
2013-08-18Add queries to If actionsDana Jansens
This allows the If action to run queries against a client other than the target of the actions being run, for example to check state on the focused window while performing actions on another window during focus cycling. The syntax looks like <action name="If"> <query target="default"> <title>FooBar</title> <maximized>yes</maximized> </query> <query target="focus"> <desktop>3</desktop> </query> <then> <action name="NextDesktop"/> </then> </action> The above checks the client window that the actions will run on to verify that its title is "FooBar" and that it is maximized. If that is true, it also checks that the currently focused client window is on desktop 3. If that is true also, then it runs the NextDesktop action. The target="" option can be set to "default" which uses the client window that the actions will run on, or it can be "focus" which uses the client window that is currently focused. The <query> tag is optional, and the conditions inside the query can be placed directly inside the If <action> tag, as they were before this change. In that case, a default <query> tag is assumed with target="default" which matches the previous behaviour. Multiple <query> tags can be present, and they must all be true in order to run the actions in <then>. If any one is false, the actions in <else> will be run instead.
2013-08-11Fix some compiler warningsDana Jansens
Void function should actually be declared void. Not-reached switch condition should still return something.
2013-08-11Change "plain" to "exact" for If's <title>Mikael Magnusson
2013-08-11Add matching which monitor the client is on in the If action (Bug 5426)Mikael Magnusson
2013-08-11Let the If action match window titles with GRegexMikael Magnusson
2013-08-11Use a helper function to make if.c a bit shorterMikael Magnusson
2013-08-11Add activedesktop to IfMikael Magnusson
2011-01-24Fix small leak in If action option parsingMikael Magnusson
2010-05-20Add some more conditions to the If actionMikael Magnusson
It can now match on window titles, virtual desktop (number, "current", "other"), demands_attention, and undecoratedness.
2010-02-16more using g_slice_new() instead of g_new()Dana Jansens
2009-12-21rename the obt_parse library to obt_xml (since it is very xml specific)Dana Jansens
2009-12-17Make it possible for an action name to choose whether it is interactive or ↵Dana Jansens
not based on its options. This way we can use the same name with options for an interactive action and a non-interactive action. Shorten the names of the ObActionsInteractive* functions to ObActionsI* Add a ObActionsIPreFunc that is called for interactive actions before the interactivity (key/mouse grab) is started. Add a ObActionsIPostFunc that is called for interactive actions after the interactiviti (key/mouse grab) has ended.
2008-03-02Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/actions/desktop.c openbox/actions/if.c
2008-03-02Don't run actions in If in reverse order.Mikael Magnusson
2008-01-20s/xmlChildrenNode/children/Dana Jansens
2008-01-20update openbox to use the current parser interface in libobtDana Jansens
there is also some random bug fixes for other libobt stuff in here.
2007-09-04ANSI function declarations, ie () -> (void)Mikael Magnusson
2007-07-11fix if action's "focused"Dana Jansens
2007-07-11missing headerDana Jansens
2007-07-11add focused check to if actionMikael Magnusson
2007-06-23add the "if" actionDana Jansens