From: Enlightenment S. <no-...@en...> - 2011-03-09 20:30:28
|
Log: e17: take sticky windows state into account in e_desk_last_focused_focus Author: jeffdameth Date: 2011-03-09 12:30:22 -0800 (Wed, 09 Mar 2011) New Revision: 57636 Trac: http://trac.enlightenment.org/e/changeset/57636 Modified: trunk/e/src/bin/e_desk.c Modified: trunk/e/src/bin/e_desk.c =================================================================== --- trunk/e/src/bin/e_desk.c 2011-03-09 20:29:38 UTC (rev 57635) +++ trunk/e/src/bin/e_desk.c 2011-03-09 20:30:22 UTC (rev 57636) @@ -369,14 +369,14 @@ EINA_LIST_FOREACH(e_border_focus_stack_get(), l, bd) { - if ((!bd->iconic) && (bd->visible) && (bd->desk == desk) && + if ((!bd->iconic) && (bd->visible) && + ((bd->desk == desk) || ((bd->zone == desk->zone) && bd->sticky)) && (bd->client.icccm.accepts_focus || bd->client.icccm.take_focus) && (bd->client.netwm.type != ECORE_X_WINDOW_TYPE_DOCK) && (bd->client.netwm.type != ECORE_X_WINDOW_TYPE_TOOLBAR) && (bd->client.netwm.type != ECORE_X_WINDOW_TYPE_MENU) && (bd->client.netwm.type != ECORE_X_WINDOW_TYPE_SPLASH) && - (bd->client.netwm.type != ECORE_X_WINDOW_TYPE_DESKTOP) - ) + (bd->client.netwm.type != ECORE_X_WINDOW_TYPE_DESKTOP)) { /* this was the window last focused in this desktop */ if (!bd->lock_focus_out) |