Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_border.c e_border.h e_winlist.c Log Message: fix winlist (alt tab) as it screwed up focsu order a bit - fixed now fix up unfocus with want focus flag fix up initial focus on wm start =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v retrieving revision 1.332 retrieving revision 1.333 diff -u -3 -r1.332 -r1.333 --- e_border.c 12 Jul 2005 17:37:27 -0000 1.332 +++ e_border.c 12 Jul 2005 17:51:03 -0000 1.333 @@ -851,6 +851,13 @@ } void +e_border_focus_latest_set(E_Border *bd) +{ + focus_stack = evas_list_remove(focus_stack, bd); + focus_stack = evas_list_prepend(focus_stack, bd); +} + +void e_border_focus_set(E_Border *bd, int focus, int set) { E_OBJECT_CHECK(bd); @@ -869,10 +876,7 @@ return; } if (!e_winlist_active_get()) - { - focus_stack = evas_list_remove(focus_stack, bd); - focus_stack = evas_list_prepend(focus_stack, bd); - } + e_border_focus_latest_set(bd); // printf("EMIT 0x%x activeve\n", bd->client.win); edje_object_signal_emit(bd->bg_object, "active", ""); e_focus_event_focus_in(bd); =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.h,v retrieving revision 1.94 retrieving revision 1.95 diff -u -3 -r1.94 -r1.95 --- e_border.h 12 Jul 2005 11:07:57 -0000 1.94 +++ e_border.h 12 Jul 2005 17:51:16 -0000 1.95 @@ -473,6 +473,7 @@ EAPI void e_border_lower(E_Border *bd); EAPI void e_border_stack_above(E_Border *bd, E_Border *above); EAPI void e_border_stack_below(E_Border *bd, E_Border *below); +EAPI void e_border_focus_latest_set(E_Border *bd); EAPI void e_border_focus_set(E_Border *bd, int focus, int set); EAPI void e_border_shade(E_Border *bd, E_Direction dir); EAPI void e_border_unshade(E_Border *bd, E_Direction dir); =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_winlist.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- e_winlist.c 11 Jul 2005 09:19:17 -0000 1.27 +++ e_winlist.c 12 Jul 2005 17:51:16 -0000 1.28 @@ -252,8 +252,11 @@ } if (!bd->lock_user_stacking) e_border_raise(bd); - if (!bd->lock_focus_in) - e_border_focus_set(bd, 1, 1); + if (!bd->lock_focus_out) + { + e_border_focus_set(bd, 1, 1); + e_border_focus_latest_set(bd); + } if ((e_config->focus_policy != E_FOCUS_CLICK) || (e_config->winlist_warp_at_end) || (e_config->winlist_warp_while_selecting)) ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs