VirtualBox

Ignore:
Timestamp:
Jun 14, 2011 1:14:57 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72238
Message:

GuestHost/SharedClipboard: moved the RTEnvGet("DISPLAY") hack out into the host-specific code

Location:
trunk/src/VBox/HostServices/SharedClipboard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/Makefile.kmk

    r35380 r37434  
    1818SUB_DEPTH = ../../../..
    1919include $(KBUILD_PATH)/subheader.kmk
     20
     21# Include sub-makefile(s).
     22include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
    2023
    2124#
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxClipboard.h

    r28800 r37434  
    2020
    2121#define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD
     22#include <VBox/hgcmsvc.h>
    2223#include <VBox/log.h>
    2324
  • trunk/src/VBox/HostServices/SharedClipboard/x11-clipboard.cpp

    r33540 r37434  
    2323#include <iprt/assert.h>
    2424#include <iprt/critsect.h>
     25#include <iprt/env.h>
    2526#include <iprt/mem.h>
    2627#include <iprt/semaphore.h>
     
    111112    {
    112113        RTCritSectInit(&pCtx->clipboardMutex);
    113         pBackend = ClipConstructX11(pCtx);
     114        pBackend = ClipConstructX11(pCtx, !RTEnvGet("DISPLAY"));
    114115        if (pBackend == NULL)
    115116            rc = VERR_NO_MEMORY;
     
    470471}
    471472
    472 CLIPBACKEND *ClipConstructX11(VBOXCLIPBOARDCONTEXT *pFrontend)
     473CLIPBACKEND *ClipConstructX11(VBOXCLIPBOARDCONTEXT *pFrontend, bool)
    473474{
    474475    return (CLIPBACKEND *)RTMemAllocZ(sizeof(CLIPBACKEND));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette