From 45a93d5d6b28c4793cfa84ba746cd1769ca23ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 16 Feb 2006 20:58:58 +0000 Subject: [PATCH] Fix for a bug I introduced with the last change: views were no longer removed at all! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16440 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/ServerWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/app/ServerWindow.cpp b/src/servers/app/ServerWindow.cpp index d8faa4e165..9e6116ea3c 100644 --- a/src/servers/app/ServerWindow.cpp +++ b/src/servers/app/ServerWindow.cpp @@ -1055,7 +1055,7 @@ ServerWindow::_DispatchViewMessage(int32 code, ViewLayer *view; if (App()->ViewTokens().GetToken(token, B_HANDLER_TOKEN, (void**)&view) == B_OK - && view->Window()->ServerWindow() != this) { + && view->Window()->ServerWindow() == this) { ViewLayer* parent = view->Parent(); STRACE(("ServerWindow %s: AS_LAYER_DELETE view: %p, parent: %p\n",