Mercurial > pidgin
changeset 18418:b51dcbac4798
Some more focus fixes.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 02 Jul 2007 23:19:30 +0000 |
parents | 579ba9866882 |
children | e79da0369a6d |
files | finch/libgnt/gntwm.c |
diffstat | 1 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/libgnt/gntwm.c Mon Jul 02 22:59:10 2007 +0000 +++ b/finch/libgnt/gntwm.c Mon Jul 02 23:19:30 2007 +0000 @@ -1559,22 +1559,16 @@ if (!transient) { GntWS *ws = wm->cws; if (node->me != wm->_list.window) { - if (GNT_IS_BOX(widget)) { ws = new_widget_find_workspace(wm, widget); } - node->ws = ws; ws->list = g_list_append(ws->list, widget); - - if (wm->event_stack) - ws->ordered = g_list_prepend(ws->ordered, widget); - else - ws->ordered = g_list_append(ws->ordered, widget); + ws->ordered = g_list_append(ws->ordered, widget); } if (wm->event_stack || node->me == wm->_list.window || - node->me == wm->cws->ordered->data) { + node->me == ws->ordered->data) { gnt_wm_raise_window(wm, node->me); } else { bottom_panel(node->panel); /* New windows should not grab focus */