VirtualBox

Changeset 37719 in vbox


Ignore:
Timestamp:
Jun 30, 2011 8:25:42 PM (14 years ago)
Author:
vboxsync
Message:

Additions/x11/VBoxClient: logging and an unused variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp

    r37423 r37719  
    2121#include <iprt/err.h>
    2222#include <iprt/assert.h>
     23#include <iprt/vector.h>
    2324#include <VBox/log.h>
    2425
     
    2930
    3031#include <limits.h>
    31 
    32 #include "vector.h"
    3332
    3433#ifdef TESTCASE
     
    184183    XWindowAttributes winAttrib;
    185184    bool fAddWin = true;
    186     char *pszWinName = NULL;
    187185    Window hClient = XmuClientWindow(mDisplay, hWin);
    188186
     
    261259    if (windowTypeRaw)
    262260        XFree(windowTypeRaw);
    263     LogRelFlowFunc(("returning %s\n", rc ? "true" : "false"));
     261    LogRelFlowFunc(("returning %RTbool\n", rc));
    264262    return rc;
    265263}
     
    308306    {
    309307    case ConfigureNotify:
     308        {
     309            XConfigureEvent *pConf = &event.xconfigure;
     310            LogRelFlowFunc(("configure event, window=%lu, x=%i, y=%i, w=%i, h=%i, send_event=%RTbool\n",
     311                           (unsigned long) pConf->window, (int) pConf->x,
     312                           (int) pConf->y, (int) pConf->width,
     313                           (int) pConf->height, pConf->send_event));
     314        }
    310315        doConfigureEvent(event.xconfigure.window);
    311316        break;
    312317    case MapNotify:
     318        LogRelFlowFunc(("map event, window=%lu, send_event=%RTbool\n",
     319                       (unsigned long) event.xmap.window,
     320                       event.xmap.send_event));
    313321        doMapEvent(event.xmap.window);
    314322        break;
    315323    case VBoxShapeNotify:  /* This is defined wrong in my X11 header files! */
     324        LogRelFlowFunc(("shape event, window=%lu, send_event=%RTbool\n",
     325                       (unsigned long) event.xany.window,
     326                       event.xany.send_event));
    316327    /* the window member in xany is in the same place as in the shape event */
    317328        doShapeEvent(event.xany.window);
    318329        break;
    319330    case UnmapNotify:
     331        LogRelFlowFunc(("unmap event, window=%lu, send_event=%RTbool\n",
     332                       (unsigned long) event.xunmap.window,
     333                       event.xunmap.send_event));
    320334        doUnmapEvent(event.xunmap.window);
    321335        break;
     
    333347void VBoxGuestSeamlessX11::doConfigureEvent(Window hWin)
    334348{
    335     LogRelFlowFunc(("\n"));
    336349    VBoxGuestWinInfo *pInfo = mGuestWindows.find(hWin);
    337350    if (pInfo)
     
    361374        mChanged = true;
    362375    }
    363     LogRelFlowFunc(("returning\n"));
    364376}
    365377
     
    530542        rc = true;
    531543    }
    532     LogRelFlowFunc(("returning %s\n", rc ? "true" : "false"));
     544    LogRelFlowFunc(("returning %RTbool\n", rc));
    533545    return rc;
    534546}
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