Enlightenment CVS committal Author : morlenxus Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_border.c e_config.c e_config.h Log Message: Allow to disable mouse slide on newly focused windows. This is consistent with sloppy and mouse focus but some users don't like it much, so here is the option... Remember: It breaks the focus logic when you for example have sloppy focus mode, pointer over a window but focus on another window! =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_border.c,v retrieving revision 1.615 retrieving revision 1.616 diff -u -3 -r1.615 -r1.616 --- e_border.c 14 Dec 2007 05:57:15 -0000 1.615 +++ e_border.c 22 Dec 2007 01:46:22 -0000 1.616 @@ -1355,11 +1355,7 @@ { if (e_config->focus_policy == E_FOCUS_SLOPPY) { - e_border_focus_set(bd, 1, 1); - } - else if (e_config->focus_policy == E_FOCUS_MOUSE) - { - if (e_border_under_pointer_get(NULL, bd)) + if (e_border_under_pointer_get(bd->desk, bd)) { if (!e_border_pointer_warp_to_center(bd)) e_border_focus_set(bd, 1, 1); @@ -7752,6 +7748,9 @@ { int x, y; + /* Do not slide pointer when disabled (probably breaks focus + * on sloppy/mouse focus but requested by users). */ + if (!e_config->pointer_slide) return 0; /* Only warp the pointer if it is not already in the area of * the given border */ ecore_x_pointer_xy_get(bd->zone->container->win, &x, &y); =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_config.c,v retrieving revision 1.276 retrieving revision 1.277 diff -u -3 -r1.276 -r1.277 --- e_config.c 10 Dec 2007 23:55:09 -0000 1.276 +++ e_config.c 22 Dec 2007 01:46:22 -0000 1.277 @@ -461,6 +461,7 @@ E_CONFIG_VAL(D, T, resize_info_visible, INT); /**/ E_CONFIG_VAL(D, T, focus_last_focused_per_desktop, INT); /**/ E_CONFIG_VAL(D, T, focus_revert_on_hide_or_close, INT); /**/ + E_CONFIG_VAL(D, T, pointer_slide, INT); /**/ E_CONFIG_VAL(D, T, use_e_cursor, INT); /**/ E_CONFIG_VAL(D, T, cursor_size, INT); /**/ E_CONFIG_VAL(D, T, menu_autoscroll_margin, INT); /**/ @@ -698,6 +699,7 @@ e_config->resize_info_visible = 1; e_config->focus_last_focused_per_desktop = 1; e_config->focus_revert_on_hide_or_close = 1; + e_config->pointer_slide = 1; e_config->use_e_cursor = 1; e_config->cursor_size = 32; e_config->menu_autoscroll_margin = 0; @@ -1550,6 +1552,7 @@ E_CONFIG_LIMIT(e_config->resize_info_visible, 0, 1); E_CONFIG_LIMIT(e_config->focus_last_focused_per_desktop, 0, 1); E_CONFIG_LIMIT(e_config->focus_revert_on_hide_or_close, 0, 1); + E_CONFIG_LIMIT(e_config->pointer_slide, 0, 1); E_CONFIG_LIMIT(e_config->use_e_cursor, 0, 1); E_CONFIG_LIMIT(e_config->cursor_size, 0, 1024); E_CONFIG_LIMIT(e_config->menu_autoscroll_margin, 0, 50); =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_config.h,v retrieving revision 1.164 retrieving revision 1.165 diff -u -3 -r1.164 -r1.165 --- e_config.h 5 Oct 2007 06:05:16 -0000 1.164 +++ e_config.h 22 Dec 2007 01:46:22 -0000 1.165 @@ -33,7 +33,7 @@ /* increment this whenever a new set of config values are added but the users * config doesn't need to be wiped - simply new values need to be put in */ -#define E_CONFIG_FILE_GENERATION 0x0121 +#define E_CONFIG_FILE_GENERATION 0x0122 #define E_CONFIG_FILE_VERSION ((E_CONFIG_FILE_EPOCH << 16) | E_CONFIG_FILE_GENERATION) #define E_EVAS_ENGINE_DEFAULT 0 @@ -166,6 +166,7 @@ int resize_info_visible; // GUI int focus_last_focused_per_desktop; // GUI int focus_revert_on_hide_or_close; // GUI + int pointer_slide; // GUI int use_e_cursor; // GUI int cursor_size; // GUI int menu_autoscroll_margin; // GUI ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs