summaryrefslogtreecommitdiff
path: root/openbox/actions
AgeCommit message (Collapse)Author
2012-10-06Allow non-interactive focus cycling.Dana Jansens
Adds an <interactive>bool</interactive> option to the NextWindow and PreviousWindow actions. When it is false, the action is not interactive and will immediately switch focus to whatever the next focus target is. Removing the "interactive" flag from the focus_cycle() method, as it was unused previously, and the new code does not make use of it either. In order to be non-interactive it simply starts a focus_cycle then immediately ends it when the action ends. The "interactive" flag in focus_cycle() forced a linear cycling order which may not be what you want, so the new method is preferrable anyhow.
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-06Fix negative ResizeRelative values with terminal windows (Fix bug 5228)Dana Jansens
Inspired by patches from Brian Mock <mock.brian@gmail.com>.
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.
2012-09-30Make ResizeRelative resize in terms of pixels for windows with resize ↵Dana Jansens
increments (Fix bug 5228) If the resize is less than the window's resize increment then we bump it up to ensure a resize does at least happen.
2012-09-30Use the KeyCode to directly find the modifier mask. (Fix bug 5173)Dana Jansens
We were finding the KeySym first, and then converting back to a modifier mask. But KeySym on a key's release can differ from on its press, and we don't need them to determine the modmask from the keycode. [setxkbmap -option "grp:shifts_toggle"] turns Shift_L into XK_ISO_Prev_Group on key release, and Shift_R into XK_ISO_Next_Group.
2012-09-30Don't make desktop switching interactive when no mods used. (Fix bug #5203)Dana Jansens
Make mod state passing more consistent, and always give actions the full state instead of stripping sometimes. (They ended up expecting it stripped always).
2011-10-05Make "no" a valid choice for the dialog option in cyclewindows.c.Dana Jansens
It is the same as "none" for backward compatibility (it used to be a boolean).
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.
2011-01-24Fix small leak in If action option parsingMikael Magnusson
2010-09-16Fix 3.4 compatibility for SendToDesktopMikael Magnusson
2010-09-16Make the dock a context and add actions LowerDock and RaiseDockMikael Magnusson
2010-05-20Allow sending windows on other desktops to the current desktop.Mikael 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-05-17Remove some unneeded stdlib.h includesMikael Magnusson
2010-05-17Add support for using relative expressions in move and resize actionsMikael Magnusson
Have MoveResizeTo use config_parse_gravity_coord instead of duplicating it locally Allow MoveResizeTo positions and sizes and per app positions to be relative to screen size Rename to config_parse_relative_number so it can be used for sizes too Add relative numbers to width/height in MoveResizeTo Add relative numbers to MoveRelative Add relative numbers to ResizeRelative, these are for the client size, not screen size
2010-04-16add an option to next/previous window to only include ↵Dana Jansens
hilited/flashing/urgent windows (feature req/bug #4341)
2010-03-25make keypad enter do the same thing as returnDana Jansens
2010-02-19get the modifier mask for a modifier key that is pressed/released more ↵Dana Jansens
accurately, using the table we built already for other purposes
2010-02-17don't use a variable as a format stringDana Jansens
2010-02-16more using g_slice_new() instead of g_new()Dana Jansens
2010-02-12use g_slice_new() instead of g_new() part 4Dana Jansens
2010-02-12using g_slice_new() instead of g_new() part 1Dana Jansens
2010-02-11make control keys work in menus/dialogs/etc with the new obt code, using ↵Dana Jansens
XLookup stuff
2010-02-11pass an input context to the interactive input functionDana Jansens
2010-02-11don't strip the state for keyboard eventsDana Jansens
this allows translation of keys not in the base keyboard layout
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
2010-01-12remove the session.c file from actions, as it is no longer usedDana Jansens
2010-01-08Merge branch 'backport' into workDana Jansens
Conflicts: Makefile.am openbox/actions/focus.c openbox/config.c openbox/event.c openbox/menuframe.c
2010-01-04Make the Focus action stop all interactive actions (Fixes bug #4436)Dana Jansens
Old < 3.4.8 Openbox versions would stop focus cycling when focus moved. Now that is not the case, but you should be able to stop it by Choosing a window explicitly still.
2009-12-21rename the obt_parse library to obt_xml (since it is very xml specific)Dana Jansens
2009-12-17Make the relative desktop switching actions interactiveDana Jansens
The desktop popup can now be shown "permanently" in which case it stays until you tell it to hide.
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-12-16Merge branch 'backport' into workDana Jansens
Conflicts: obt/keyboard.c obt/keyboard.h openbox/event.c openbox/menuframe.c openbox/moveresize.c openbox/openbox.c openbox/screen.c
2009-12-14Allow the user to bind more than one keycode to a keysym for Ob ↵Dana Jansens
Menus/Move/Resize If the user has escape bound to more than one keycode then they can use any of them to close a menu. This change applies to the hardcoded keys in openbox, which are used for the menus and for move/resize, and maybe other places.
2009-12-11Merge branch 'backport' into workDana Jansens
Conflicts: openbox/config.c openbox/event.c openbox/prop.c openbox/prop.h openbox/screen.c openbox/screen.h
2009-12-09Fix the Focus/Activate actions to focus windows on other desktops correctlyDana Jansens
2009-12-08Merge branch 'backport' into workDana Jansens
Conflicts: openbox/actions/all.h openbox/actions/session.c openbox/client.c openbox/event.c openbox/grab.c
2009-11-24Combine the Exit and SessionLogout actionsDana Jansens
Just "do the right thing" based on if you are connected to a session manager or not.
2009-11-21Merge branch 'backport' into workDana Jansens
Conflicts: openbox/popup.c
2009-11-21Fix some signed/unsigned warnings (and keep stuff within 80 columns).Dana Jansens
2009-11-21Fix spacing from 8f37a97a4cc29d35f6a632ef2f71ac760e301ee5Dana Jansens
2009-11-07Make clang happierMikael Magnusson
Add asserts to default: in switch statements Store pointed to variables locally so it knows they don't change Remove some dead assignments Mark ob_exit_with_error as noreturn Use "%s", msg instead of just msg to printf style functions Use the c_pfocus variable
2009-11-06Merge branch 'backport' into workDana Jansens
2009-11-06fix a crash in the SessionLogout actionDana Jansens
2009-09-19Add all the action names used in 3.4 so configs don't breakMikael Magnusson
2009-09-19Merge branch 'backport' into workMikael Magnusson
Conflicts: openbox/actions/desktop.c openbox/client.c openbox/event.c openbox/extensions.c openbox/popup.c openbox/screen.c parser/parse.c
2009-07-04Add "prev" and "next" as possible targets for moveto/resizeto actions.Nico Golde
One of the Debian users asked if it's possible to send a window to other monitor when using xinerama, especially useful of you have 2 monitors and want to toggle a window to the other one. I wrote a patch that implements next and prev to also make that work for 3 or more workspaces.
2009-03-29Avoid anonymous unionsMikael Magnusson
Some compilers, like sun studio and clang don't support them.