(svn r7206) -Codechange: Remove (some of) the magic needed for windows that could be invalid after

a call to DeleteWindow() somewhere else. Also do some cleanup with AllowWindowDescFront()
This commit is contained in:
Darkvater
2006-11-18 17:04:44 +00:00
parent b3c48c0a84
commit 53f954edd3
8 changed files with 6 additions and 29 deletions

View File

@@ -1258,11 +1258,6 @@ static void ClientListPopupWndProc(Window *w, WindowEvent *e)
if (index >= 0 && e->we.popupmenu.pt.y >= w->top)
HandleClientListPopupClick(index, WP(w,menu_d).main_button);
// Sometimes, because of the bad DeleteWindow-proc, the 'w' pointer is
// invalid after the last functions (mostly because it kills a window
// that is in front of 'w', and because of a silly memmove, the address
// 'w' was pointing to becomes invalid), so we need to refetch
// the right address...
DeleteWindowById(WC_TOOLBAR_MENU, 0);
} break;