Dana Jansens
1869e4e830
Allow non-interactive focus cycling.
...
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-06 22:30:02 -04:00
Dana Jansens
56a0993300
When a window is the focus target and it is removed from the focus order, reset the focus cycling (Fix bug 5410)
...
We were only doing this if a dialog was showing. But if it's the target, then
a dialog is not relevant, we should always recompute the focus cycling. This
avoids a crash when not using a dialog and closing a window during cycling.
2012-10-06 22:30:02 -04:00
Dana Jansens
5b2ed63cb4
Fix bug #4877 (Some harmless code quirks involving booleans)
2011-08-01 11:50:16 -04:00
Dana Jansens
b05ac359b8
show the focus cycle popup's icons in linear order when cycling in linear order (bug #2319 )
2010-04-16 21:32:37 -04:00
Dana Jansens
56fface3a4
add an option to next/previous window to only include hilited/flashing/urgent windows (feature req/bug #4341 )
2010-04-16 21:32:31 -04:00
Dana Jansens
567fd15eeb
Merge branch 'backport' into work
...
Conflicts:
configure.ac
data/rc.xml
openbox/client.c
openbox/event.c
openbox/focus_cycle.c
openbox/focus_cycle_popup.c
openbox/openbox.c
openbox/prop.c
openbox/prop.h
openbox/screen.c
parser/parse.c
version.h.in
2010-01-11 16:20:53 -05:00
Dana Jansens
bd864012cd
Make the focus cycle indicator follow target fallback in the popup
2010-01-11 15:35:47 -05:00
Dana Jansens
14180a6b0d
More work on refreshing the focus cycle dialog when windows are added/removed from the valid focus order
2010-01-11 15:13:55 -05:00
Dana Jansens
12653a4153
Redraw the focus cycle popup when the list of focusable windows changes, rather than closing it
2010-01-11 12:47:59 -05:00
Dana Jansens
d3a01a40f3
If a window is added to the focus order while focus cycling, stop the focus cycling istead of crashing (See bug #4411 )
2010-01-11 11:04:27 -05:00
Dana Jansens
63f748aa3f
Make focus_valid_target() take a desktop argument.
...
So you can find valid targets on desktops other than the currently visible one
2010-01-08 14:44:37 -05:00
Dana Jansens
73575c10ce
Merge branch 'backport' into work
...
Conflicts:
Makefile.am
openbox/actions/focus.c
openbox/config.c
openbox/event.c
openbox/menuframe.c
2010-01-08 10:22:30 -05:00
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
965ed8907a
Merge branch 'backport' into work
...
Conflicts:
openbox/screen.c
2009-12-18 11:39:56 -05:00
Dana Jansens
a067628051
Hide the focus popup if we change desktops and one of the windows in it disappears
2009-12-17 16:51:01 -05:00
Dana Jansens
acafa38c8e
Merge branch 'backport' into work
...
Conflicts:
openbox/config.c
openbox/event.c
openbox/prop.c
openbox/prop.h
openbox/screen.c
openbox/screen.h
2009-12-11 19:02:11 -05:00
Dana Jansens
cf033623a0
Allow skip_taskbar windows to be focused on map when the user requests it in rc.xml. Fixes bug #4350
2009-12-09 10:56:43 -05:00
Mikael Magnusson
ec328fc04f
Merge branch 'backport' into work
...
Conflicts:
obt/keyboard.c
openbox/actions/cyclewindows.c
openbox/actions/directionalwindows.c
openbox/frame.c
openbox/openbox.c
2008-03-08 17:43:32 +01:00
Mikael Magnusson
c716d1788b
Remove double newlines.
2008-03-08 17:41:52 +01:00
Mikael Magnusson
173b9b7648
Merge branch 'backport' into work
...
Conflicts:
openbox/client.c
openbox/screen.c
2008-02-29 04:21:02 +01:00
Mikael Magnusson
835b2de913
Remove an unused variable.
2008-02-29 03:18:12 +01:00
Dana Jansens
76464a604e
combine the old focus cycle popup code with mika's new list-mode popup, and make an action option for it (the old <dialog> option)
2008-02-03 00:28:02 -05: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
Mikael Magnusson
77baf26a7f
remove trailing whitespace
2007-07-17 02:48:16 +02:00
Dana Jansens
0d0ce065df
don't focus helper windows that map unless there are no other valid targets in the group (don't move focus from a group window to a new helper window).
...
this fixes gucharmap.
2007-07-06 19:41:23 +00:00
Dana Jansens
6c5f6ed1f5
remove the activate action, make the focus action "activate" but not raise or unshade
2007-06-22 14:09:57 +00:00
Dana Jansens
29c4cf4a15
add the activate action. it will replace the focus action, as it can just focus without raising now (or without unshading)
2007-06-22 04:59:06 +00:00
Dana Jansens
fbc7607fbd
add the cyclewindows action
2007-06-22 04:37:33 +00:00
Dana Jansens
8f2e3f5fe1
use the same decision code to focus new windows as for focus cycling or focus fallback. yay consistency.
2007-06-12 17:46:16 +00:00
Dana Jansens
e437dff20c
remove debug prints
2007-06-10 18:06:12 +00:00
Dana Jansens
220e568d75
allow noninteractive directional focus.
...
make keybinds noninteractive when the last key in the chain has no modifiers (i think this is what the code was supposed to do but failed.)
don't reset key chains during an interactive action. reset them after an interactive action finishes (honoring chroot)
so you can <C-t><C-Up>Stuff<//> and it'll do stuff as you hit C-Up, you dont have to keep hitting C-t
2007-06-10 17:58:52 +00:00
Dana Jansens
2aa0fcca73
let you focus cycle to helper windows if there are only dialog windows around in its group (only normal type windows count as siblings for this case)
2007-06-09 17:58:16 +00:00
Dana Jansens
100b54ff7a
remove {} just cuz
2007-06-07 19:06:03 +00:00
Dana Jansens
aac7291527
fix dirfocus when no dialog
2007-06-07 19:05:06 +00:00
Dana Jansens
0dab2f8bad
why is this function declared twice
2007-06-07 19:03:18 +00:00
Mikael Magnusson
39d94f0db0
no pointless using of the comma operator
2007-05-29 00:14:56 +00:00
Mikael Magnusson
e215fc0110
make next/previouswindow and dirfocus actions show the focus_cycle_indicator even if they target the focused window, remove an unused variable from focus_cycle but not from focus_directional_cycle, there we use it to fix the aforementioned indicator.
2007-05-29 00:06:51 +00:00
Dana Jansens
461ae2a833
add a comment and make it smarter about when to let you focus cycle to windows with modal children
2007-05-28 00:38:44 +00:00
Dana Jansens
16fcb1213d
when you focus a window, bring any modal children it has to that desktop
...
when falling back, return the window which actually was focused by client_focus
let you focus cycle to windows when their modal window is on another desktop (it will be brought over)
2007-05-28 00:33:58 +00:00
Dana Jansens
aa7c36d1bc
only kill focus cycling when the window being destroyed was in the list of targets
2007-05-26 21:22:28 +00:00
Dana Jansens
11c4ce4903
don't need the client destructor now
2007-05-26 21:09:48 +00:00
Dana Jansens
5d9b059601
oops was saving tthe options in the wrong place.
...
save the panels/dockwindows/desktopwindows/alldesktops options when focus cycling starts
2007-05-26 21:03:48 +00:00
Dana Jansens
12bbc0cc43
use focus_cycle_stop to cancel focus cycling
2007-05-26 20:52:21 +00:00
Dana Jansens
508ce538c0
when canceling focus cycling, cancel both normal and directional
2007-05-26 20:48:52 +00:00
Dana Jansens
a76ac8205c
don't crash when a window adds itself to the focus order while cycling
2007-05-26 20:43:08 +00:00
Dana Jansens
bf9cbd07e8
make modal windows cyclable all the time if they are visible and stuff
2007-05-22 18:20:17 +00:00
Dana Jansens
ea272a93ef
show the old single-window popup for directional focus.
...
fix multirow icons for the new popup.
2007-05-19 20:52:31 +00:00
Dana Jansens
2253b5e341
fix the popup for directional focusing, only show what is going to be a valid target. change directional focus to use the same criteria as normal cycling.
2007-05-19 20:31:08 +00:00
Dana Jansens
83eb922012
move focus_cycle_popup into its own file
2007-05-19 14:49:00 +00:00
Dana Jansens
eb09b1873d
move focus_cycle_indicator into its own file
2007-05-19 14:36:19 +00:00