all repos — openbox @ e1fd32bcf5a07d8b9ab774d0f690112dec29cc8e

openbox fork - make it a bit more like ryudo

add an option for if the popup is used for desktop cycling. defaults on.
Dana Jansens danakj@orodu.net
commit

e1fd32bcf5a07d8b9ab774d0f690112dec29cc8e

parent

f4979de3f5257bf70591d4ccf0ecab7da567b27d

4 files changed, 12 insertions(+), 3 deletions(-)

jump to
M openbox/config.copenbox/config.c

@@ -9,6 +9,7 @@ gboolean config_focus_follow;

gboolean config_focus_last; gboolean config_focus_last_on_desktop; gboolean config_focus_popup; +gboolean config_desktop_popup; char *config_theme;

@@ -231,6 +232,8 @@ parse_string(doc, nname));

nname = parse_find_node("name", nname->next); } } + if ((n = parse_find_node("cyclingDialog", node))) + config_desktop_popup = parse_bool(doc, n); } static void parse_resize(xmlDocPtr doc, xmlNodePtr node, void *d)

@@ -321,6 +324,7 @@ parse_register("theme", parse_theme, NULL);

config_desktops_num = 4; config_desktops_names = NULL; + config_desktop_popup = TRUE; parse_register("desktops", parse_desktops, NULL);
M openbox/config.hopenbox/config.h

@@ -16,6 +16,8 @@ /*! Focus the last focused window as a fallback when switching desktops */

extern gboolean config_focus_last_on_desktop; /*! Show a popup dialog while cycling focus */ extern gboolean config_focus_popup; +/*! Show a popup dialog while cycling desktops */ +extern gboolean config_desktop_popup; /*! The number of slits to create extern int config_slit_number;*/ /*! When true windows' contents are refreshed while they are resized; otherwise
M openbox/mouse.copenbox/mouse.c

@@ -121,8 +121,10 @@ act->data.sendtodir.final = FALSE;

act->data.sendtodir.cancel = FALSE; } - if ((act->func == action_desktop_dir || - act->func == action_send_to_desktop_dir)) { + if (config_desktop_popup && + (act->func == action_desktop_dir || + act->func == action_send_to_desktop_dir)) + { keyboard_interactive_grab(state, c, context, act); }
M openbox/screen.copenbox/screen.c

@@ -700,7 +700,8 @@

d = translate_row_col(r, c); } - popup_cycle(d, TRUE); + if (config_desktop_popup) + popup_cycle(d, TRUE); return d; done_cycle: