summaryrefslogtreecommitdiff
path: root/openbox/actions/execute.c
AgeCommit message (Collapse)Author
2012-10-06Add a $pointer execute variable substitution and make $wip and $pid ↵Dana Jansens
consistent (Fix bug 5758) $wip and $pid would output values for the current target window if there was one, but output nothing at all if there wasn't making the output difficult to parse. Changed to make these always output a 0 if there is no target. Added a $pointer variable that is replaced with the x and y coordiates of the pointer, separated by a space. Inspired by the work of Denis Kaganovich <mahatma@eu.by>.
2012-10-06Allow windows created by execute actions to steal focus if the user isn't ↵Dana Jansens
interacting with another window (Fix bug 5419). When the execute action was run, we would say that the user had used the focused at that time. Then when a new window popped up, we'd think the user was busy in the current window and prevent the new one from steal focus. Now the execute action does not update the "user interacted with the focused window" timestamp anymore. So, if they aren't currently typing in some window when they trigger an execute action, and the window appears, it will steal focus.
2011-01-24setenv and unsetenv dont exist in Solaris 9. (Fixes bug #4663)Philip Brown
Seeing as how you already use glib, I just substituted g_setenv and g_unsetenv as appropriate, and it now works for me.
2010-02-17don't use a variable as a format stringDana Jansens
2010-02-12use g_slice_new() instead of g_new() part 4Dana Jansens
2010-02-11make the execute action not segfault when using a prompt (bug #4543)Dana Jansens
also save the client when using a prompt so it can be used if you choose "yes" from the prompt
2010-01-28Don't close the menu when you held control even for executeMikael Magnusson
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.
2009-11-21Fix spacing from 8f37a97a4cc29d35f6a632ef2f71ac760e301ee5Dana Jansens
2008-10-27The code to replace $wid/$pid died on $foo.Mikael Magnusson
It failed to increment a variable after finding a $ but no pid or wid, which led to a fun infinite loop. Also don't check if c[1] is w if we already established it was p.
2008-03-09fix a bug from when $window changed to $wid in the execute actionDana Jansens
2008-03-02Merge branch 'backport' into workDana Jansens
Conflicts: openbox/actions/execute.c openbox/event.c openbox/openbox.c openbox/openbox.h
2008-03-02allow prompts to have titles specified. show a prompt when there are syntax ↵Dana Jansens
errors in the xml config files.
2008-03-02add a cleanup callback to the prompt interface. when the prompt's callback ↵Dana Jansens
returns TRUE, then the cleanup function is called. likewise when the prompt system is shutdown (openbox is exiting), then the cleanup function is also called. it should unref/destroy the prompt and any memory associated with it
2008-03-02glib already prints a verbose error message when execute fails. don't add a ↵Dana Jansens
second level of useless verbosity to that
2008-03-01make it $pid and $wid, it's a little faster this way and they look the same ↵Dana Jansens
so why not
2008-03-01move some code around in the execute actionDana Jansens
2008-03-01instead of passing things to the environment, substitute $pid and $window ↵Dana Jansens
inline in the Execute command string
2008-03-01pass the targeted window's PID (if available) and WINDOW_ID to the ↵Dana Jansens
environment of the Execute action
2008-02-28Merge branch 'backport' into workMikael Magnusson
Conflicts: Makefile.am
2008-02-27clean up the execute action code, and free the prompt option stringDana Jansens
2008-02-27Merge branch 'backport' into workDana Jansens
Conflicts: openbox/actions/execute.c
2008-02-27Give the Execute action the <prompt> optionDana Jansens
2008-02-21Merge branch 'backport' into workDana Jansens
Conflicts: openbox/openbox.c openbox/session.c
2008-02-21Change all single quotes to double quotes in strings.Mikael Magnusson
2008-01-31Merge branch 'backport' into workDana Jansens
Conflicts: openbox/client.c openbox/config.c openbox/event.c openbox/extensions.c openbox/focus_cycle_indicator.c openbox/focus_cycle_popup.c openbox/menuframe.c openbox/moveresize.c openbox/openbox.c openbox/screen.c openbox/stacking.c openbox/startupnotify.c
2008-01-27use setenv/unsetenv instead of putenv, cuz they are not ugly and confusing ↵Dana Jansens
wrt memory leaks
2008-01-21use the <wmclass> for startup notfication in the execute action. when ↵Dana Jansens
present don't use the check against the binary.
2008-01-20move the xdg path stuff into obt/paths.[ch], and make render and openbox use itDana Jansens
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-13let you specify <command> or <execute> for execute actions - backwards compatDana Jansens
2007-07-05rename <execute> to <command>Mikael Magnusson
2007-06-22add the cyclewindows actionDana Jansens
2007-06-22the execute action works again.Dana Jansens
default hardcoded bindings are temporarily offline