Commit graph

140 commits

Author SHA1 Message Date
Dana Jansens
331990a4f2 Make the Focus action stop all interactive actions (Fixes bug #4436)
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.
2010-01-04 16:25:13 -05:00
Dana Jansens
d55f4b41c6 Allow the user to bind more than one keycode to a keysym for Ob 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-14 15:40:33 -05:00
Dana Jansens
324ba15ebc Fix the Focus/Activate actions to focus windows on other desktops correctly 2009-12-09 13:25:19 -05:00
Dana Jansens
7f36e21ea9 Combine the Exit and SessionLogout actions
Just "do the right thing" based on if you are connected to a session manager
or not.
2009-11-24 19:36:18 -05:00
Dana Jansens
056295a8ad Fix some signed/unsigned warnings (and keep stuff within 80 columns). 2009-11-21 15:16:37 -05:00
Dana Jansens
6bb4b22cbe fix a crash in the SessionLogout action 2009-11-06 21:02:09 -05:00
Nico Golde
3cd4db67aa Add "prev" and "next" as possible targets for moveto/resizeto actions.
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-07-04 14:26:50 +02:00
Mikael Magnusson
264edb053d Avoid anonymous unions
Some compilers, like sun studio and clang don't support them.
2009-03-29 22:34:50 +02:00
Mikael Magnusson
6a35e7c594 Bring helper windows when following a window. 2008-10-29 13:47:27 +01:00
Mikael Magnusson
e6e393a30d Add a translators note about not translating the word "SessionLogout" in an error message. 2008-05-25 20:27:06 +02:00
Mikael Magnusson
c716d1788b Remove double newlines. 2008-03-08 17:41:52 +01:00
Mikael Magnusson
617effd275 Don't run actions in focus cycling actions backwards either (as in 664b0b4e94). 2008-03-08 17:41:52 +01:00
Cyrille Bagard
c5f01fd310 Update french translation and fix a typo in actions/session.c 2008-03-03 02:11:57 +01:00
Dana Jansens
20bd592f8b change the logout button to same capitilization as the title, and update translatable strings 2008-03-02 18:34:28 -05:00
Dana Jansens
c24ae6c8eb be consistent with logout vs log out use 2008-03-02 18:28:33 -05:00
Dana Jansens
f542c5143a add a title to the session logout confirm prompt 2008-03-02 17:19:39 -05:00
Dana Jansens
9d9ca8d1cf allow prompts to have titles specified. show a prompt when there are syntax errors in the xml config files. 2008-03-02 17:12:11 -05:00
Dana Jansens
bb557f06a6 add a cleanup callback to the prompt interface. when the prompt's callback 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-02 16:13:23 -05:00
Dana Jansens
527ecafab9 the #ifdef was backwards for using SM or not 2008-03-02 16:04:28 -05:00
Dana Jansens
8562034e30 glib already prints a verbose error message when execute fails. don't add a second level of useless verbosity to that 2008-03-02 15:28:22 -05:00
Dana Jansens
ffaac4a650 make the SessionLogout action always available but it shows an error if you use it and Openbox wasn't built with SM support 2008-03-02 15:02:07 -05:00
Mikael Magnusson
664b0b4e94 Don't run actions in If in reverse order. 2008-03-02 13:49:40 +01:00
Mikael Magnusson
610e80e052 Super miniscule optimization. 2008-03-02 13:49:40 +01:00
Dana Jansens
fc085fd66c make the prompt option default to 'true' for Exit and SessionLogout 2008-03-02 03:46:28 -05:00
Dana Jansens
4d09821730 add a SessionLogout action 2008-03-02 03:46:22 -05:00
Dana Jansens
1018b836c4 clean up the execute action code, and free the prompt option string 2008-02-27 22:19:59 -05:00
Dana Jansens
92f23264c7 change the yes/no buttons to Exit/Cancel for the exit prompt 2008-02-27 22:14:11 -05:00
Dana Jansens
2c8bc0c904 add a boolean <prompt> option to the Exit action, which will ask before exiting openbox 2008-02-27 20:59:17 -05:00
Dana Jansens
94e339496c Give the Execute action the <prompt> option 2008-02-27 20:59:15 -05:00
Mikael Magnusson
2cb31da22c Change all single quotes to double quotes in strings. 2008-02-21 12:02:18 +01:00
Mikael Magnusson
c1257fb4f9 MoveResizeTo was broken for opposite edges. 2008-02-19 18:44:49 +01:00
Mikael Magnusson
c907f5af4a Wrap the focus action in actions_client_move.
When alt-tabbing to iconified audacious and the playlist or eq window pops up under
the cursor, they "stole" focus from the main window.
2008-02-13 21:37:28 -05:00
Dana Jansens
265bdd4660 don't crash when using <raise> and alt-tab and there are no windows to cycle between 2008-02-05 12:32:46 -05:00
Dana Jansens
746859c101 if windows on screen are going to be moved, then do the ReplayPointer before that occurs, so it goes to the right window. if they are not, then just wait until after the actions are run (for kdesktop's sake really) 2008-02-02 11:22:17 -05:00
Dana Jansens
a4d13100e6 use setenv/unsetenv instead of putenv, cuz they are not ugly and confusing wrt memory leaks 2008-01-27 04:25:09 -05:00
Dana Jansens
1b33ab6c0d use the <wmclass> for startup notfication in the execute action. when present don't use the check against the binary. 2008-01-21 22:27:03 -05:00
Dana Jansens
26f34d3ba0 resizing was defaulting to the topleft corner instead of to the auto-ness or something.. 2008-01-16 02:08:42 +01:00
Dana Jansens
ea371936ce let you raise the focus target temporarily during focus cycling, with the <raise> option. also a new <bar> option lets you turn off the indicator bar 2008-01-11 16:11:51 -05:00
Dana Jansens
746015e88c make backport closer to 3.4-working for merging purposes 2008-01-11 15:36:31 -05:00
Dana Jansens
abc67cbdc1 make it possible to temporarily raise a window to the top, and restore it. also fix the return val for window_layer. 2008-01-11 15:28:26 -05:00
Mikael Magnusson
556eb7b7fb ANSI function declarations, ie () -> (void) 2007-09-04 06:27:10 +02:00
Dana Jansens
fba55d8d9f make growtoedge shrink if it cyan grow any more 2007-08-04 14:04:22 -04:00
Dana Jansens
0cfd92ab9e don't make omnipresent windows lose focus when changing desktops. this is done by allowing focus_fallback to specify if focus has been lost or not. usually if you're call it, focus is lost, but not always. 2007-08-04 13:29:13 -04:00
Dana Jansens
3b4b52921a show a popup notification when switching desktops (also make all the config options export time in milliseconds not half milli half micro) 2007-08-03 20:40:13 -04:00
Mikael Magnusson
7c7bfd770d Accept <command> in addition to <execute> for the restart action. 2007-07-31 12:37:31 -04:00
Dana Jansens
172e93b350 add an 'all' option for the monitor in MoveResizeTo 2007-07-22 09:32:30 -04:00
Dana Jansens
64c59b7456 for MoveResizeTo make <width>current</width> and <height>current</height> and <monitor>current</monitor> work like <x> and <y> 2007-07-22 08:53:15 -04:00
Dana Jansens
dd41ae9889 for MoveResizeTo, make <x>current</x> the same as not specifying <x/> at all 2007-07-22 08:25:18 -04:00
Dana Jansens
41f90931ff fix copy/paste error 2007-07-21 15:48:12 -04:00
Dana Jansens
730062cac9 fix growtoedge so it doesn't move terminal windows around 2007-07-19 15:34:08 -04:00