* 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
This commit is contained in:
@@ -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 <DesktopLink.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <DesktopLink.h>
|
||||
#include <ServerProtocol.h>
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
|
||||
DesktopLink::DesktopLink()
|
||||
:
|
||||
fReplyPort(B_ERROR)
|
||||
@@ -35,6 +38,8 @@ DesktopLink::DesktopLink()
|
||||
StartMessage(AS_GET_DESKTOP);
|
||||
Attach<port_id>(fReplyPort);
|
||||
Attach<int32>(getuid());
|
||||
AttachString(getenv("TARGET_SCREEN"));
|
||||
Attach<int32>(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
|
||||
|
||||
Reference in New Issue
Block a user