mirror of
https://github.com/labwc/labwc.git
synced 2026-02-17 22:05:30 -05:00
cycle: update config to <osd output="all|cursor|focused">
I think `<windowSwitcher><osd output="keyboard">` is a bit unclear and hard to interpret as "show OSD in the output with keyboard focus". Also, we use "cursor" instead of "pointer" in other configurations like `<placement policy="cursor">` and `<action name="ShowMenu" atCursor="">`. So let's replace `output="all|pointer|keyboard"` with `output="all|cursor|focused"`. In documentation, I reordered them to `output="all|focused|cursor"` as "focused" feels like a bit more sophisticated and general policy.
This commit is contained in:
parent
71d29cbebb
commit
c4277ab507
4 changed files with 12 additions and 12 deletions
|
|
@ -299,10 +299,10 @@ init_cycle(struct server *server)
|
|||
}
|
||||
break;
|
||||
}
|
||||
case CYCLE_OSD_OUTPUT_POINTER:
|
||||
case CYCLE_OSD_OUTPUT_CURSOR:
|
||||
create_osd_on_output(output_nearest_to_cursor(server));
|
||||
break;
|
||||
case CYCLE_OSD_OUTPUT_KEYBOARD: {
|
||||
case CYCLE_OSD_OUTPUT_FOCUSED: {
|
||||
struct output *output;
|
||||
if (server->active_view) {
|
||||
output = server->active_view->output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue