diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-04-16 18:55:33 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-04-16 21:32:38 -0400 |
| commit | 77ee361f5cedb415c1189b0a75bde83a1a275f35 (patch) | |
| tree | 40f07ac06f38478cfa0767ccad1e4ea79234c80b /openbox/config.c | |
| parent | b05ac359b8a5a91cd2a115ba4612e8acfdf1d8d6 (diff) | |
allow warping the mouse pointer when switching desktops by bumping into the edge of the monitor with a window
based on a patch by Nathaniel Gephart <computinchuck@gmail.com>
Diffstat (limited to 'openbox/config.c')
| -rw-r--r-- | openbox/config.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/openbox/config.c b/openbox/config.c index bf0facda..573ce4c2 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -86,9 +86,10 @@ guint config_dock_app_move_modifiers; guint config_keyboard_reset_keycode; guint config_keyboard_reset_state; -gint config_mouse_threshold; -gint config_mouse_dclicktime; -gint config_mouse_screenedgetime; +gint config_mouse_threshold; +gint config_mouse_dclicktime; +gint config_mouse_screenedgetime; +gboolean config_mouse_screenedgewarp; guint config_menu_hide_delay; gboolean config_menu_middle; @@ -465,6 +466,8 @@ static void parse_mouse(xmlNodePtr node, gpointer d) if (config_mouse_screenedgetime && config_mouse_screenedgetime < 25) config_mouse_screenedgetime = 25; } + if ((n = obt_xml_find_node(node, "screenEdgeWarpMouse"))) + config_mouse_screenedgewarp = obt_xml_node_bool(n); n = obt_xml_find_node(node, "context"); while (n) { @@ -1030,6 +1033,7 @@ void config_startup(ObtXmlInst *i) config_mouse_threshold = 8; config_mouse_dclicktime = 200; config_mouse_screenedgetime = 400; + config_mouse_screenedgewarp = FALSE; bind_default_mouse(); |
