From: <sa...@us...> - 2006-12-15 00:40:59
|
Revision: 18000 http://svn.sourceforge.net/gaim/?rev=18000&view=rev Author: sadrul Date: 2006-12-14 16:40:56 -0800 (Thu, 14 Dec 2006) Log Message: ----------- Clicking the first window on the taskbar didn't give it focus. Fix that. Modified Paths: -------------- trunk/console/libgnt/gntbindable.c trunk/console/libgnt/gntwm.c Modified: trunk/console/libgnt/gntbindable.c =================================================================== --- trunk/console/libgnt/gntbindable.c 2006-12-14 22:25:18 UTC (rev 17999) +++ trunk/console/libgnt/gntbindable.c 2006-12-15 00:40:56 UTC (rev 18000) @@ -107,10 +107,7 @@ action = g_hash_table_lookup(klass->actions, name); if (action && action->u.action) { - if (list) - return action->u.action(bindable, list); - else - return action->u.action_noparam(bindable); + return action->u.action(bindable, list); } return FALSE; } Modified: trunk/console/libgnt/gntwm.c =================================================================== --- trunk/console/libgnt/gntwm.c 2006-12-14 22:25:18 UTC (rev 17999) +++ trunk/console/libgnt/gntwm.c 2006-12-15 00:40:56 UTC (rev 18000) @@ -300,10 +300,13 @@ GList *l; int n; - if (!wm->ordered || !list) + if (!wm->ordered) return TRUE; - n = GPOINTER_TO_INT(list->data); + if (list) + n = GPOINTER_TO_INT(list->data); + else + n = 0; w = wm->ordered->data; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |