VirtualBox

Changeset 8067 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Apr 16, 2008 7:30:39 PM (17 years ago)
Author:
vboxsync
Message:

HostServices/SharedClipboard: another attempt to fix a segfault in the X11 clipboard

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/x11.cpp

    r8043 r8067  
    4545#include <X11/Shell.h>
    4646#include <X11/Xproto.h>
     47#include <X11/StringDefs.h>
    4748
    4849/** The different clipboard formats which we support. */
     
    688689    char *pcArgv = 0;
    689690    int rc = VINF_SUCCESS;
    690     static String szFallbackResources[] = { (char*)"*.width: 1", (char*)"*.height: 1", NULL };
     691    // static String szFallbackResources[] = { (char*)"*.width: 1", (char*)"*.height: 1", NULL };
    691692    Display *pDisplay;
    692693    LogRel (("vboxClipboardThread: starting clipboard thread\n"));
     
    699700    XtToolkitInitialize();
    700701    g_ctx.appContext = XtCreateApplicationContext();
    701     XtAppSetFallbackResources(g_ctx.appContext, szFallbackResources);
     702    // XtAppSetFallbackResources(g_ctx.appContext, szFallbackResources);
    702703    pDisplay = XtOpenDisplay(g_ctx.appContext, 0, 0, "VBoxClipboard", 0, 0, &cArgc, &pcArgv);
    703704    if (pDisplay == 0)
     
    706707        return VERR_NOT_SUPPORTED;
    707708    }
    708     g_ctx.widget = XtAppCreateShell(0, "VBoxClipboard", applicationShellWidgetClass, pDisplay,
    709                                     0, 0);
     709    g_ctx.widget = XtVaAppCreateShell(0, "VBoxClipboard", applicationShellWidgetClass, pDisplay,
     710                                      XtNwidth, 1, XtNheight, 1, NULL);
    710711    if (g_ctx.widget == 0)
    711712    {
Note: See TracChangeset for help on using the changeset viewer.

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