From 73bade369c1fead8ae0ac5cf3f9cce1c2bab53b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 30 Nov 2009 22:07:16 +0000 Subject: [PATCH] * The DesktopLink class creates a new link to the Desktop, and therefore also uses the AS_GET_DESKTOP command - but I forgot to update this to the new version (it also didn't know the target screen stuff yet). * This probably fixes bug #5042. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34394 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/DesktopLink.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/kits/app/DesktopLink.cpp b/src/kits/app/DesktopLink.cpp index 29205fa73d..83feea6655 100644 --- a/src/kits/app/DesktopLink.cpp +++ b/src/kits/app/DesktopLink.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2006, Haiku Inc. + * Copyright 2006-2009, Haiku Inc. * Distributed under the terms of the MIT License. * * Authors: @@ -7,14 +7,17 @@ */ +#include + +#include #include -#include #include namespace BPrivate { + DesktopLink::DesktopLink() : fReplyPort(B_ERROR) @@ -35,6 +38,8 @@ DesktopLink::DesktopLink() StartMessage(AS_GET_DESKTOP); Attach(fReplyPort); Attach(getuid()); + AttachString(getenv("TARGET_SCREEN")); + Attach(AS_PROTOCOL_VERSION); int32 code; if (FlushWithReply(code) != B_OK || code != B_OK) @@ -58,4 +63,5 @@ DesktopLink::InitCheck() const return fReplyPort < B_OK ? fReplyPort : B_OK; } + } // namespace BPrivate