Ignore:
Timestamp:
Aug 20, 2006, 9:50:11 AM (19 years ago)
Author:
bird
Message:

fixed a couple of clipboard issues. seems to work now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/synergy/lib/platform/CPMScreen.cpp

    r2771 r2774  
    547547    qmsg.ptl.y = 0;
    548548    qmsg.reserved = 0;
    549 LOG((CLOG_DEBUG "fakeMessage: msg=%#lx mp1=%#lx mp2=%#lx...", msg, mp1, mp2));
     549    LOG((CLOG_DEBUG "fakeMessage: msg=%#lx mp1=%#lx mp2=%#lx...", msg, mp1, mp2));
    550550    const char *pszError = m_fakeMsg(m_hab, &qmsg);
    551551    if (pszError) {
    552552        LOG((CLOG_CRIT "fakeMessage: msg=%#lx mp1=%#lx mp2=%#lx failed: %s", msg, mp1, mp2, pszError));
    553553    }
    554 else LOG((CLOG_DEBUG "fakeMessage: done"));
    555554}
    556555
     
    624623    POINTL ptl;
    625624    if (WinQueryPointerPos(HWND_DESKTOP, &ptl)) {
    626         LOG((CLOG_DEBUG "fakeMouseRelativeMove: %d,%d (%d,%d +/- %d,%d)", ptl.x + dx, ptl.y - dy, ptl.y, ptl.x, dx, dy));
     625        LOG((CLOG_DEBUG1 "fakeMouseRelativeMove: %d,%d (%d,%d +/- %d,%d)", ptl.x + dx, ptl.y - dy, ptl.y, ptl.x, dx, dy));
    627626        fakeMouseMove(ptl.x + dx, ptl.y - dy - m_cy);
    628627        return;
     
    762761        throw XScreenOpenFailure();
    763762    }
    764     LOG((CLOG_DEBUG1 "openHookLibrary: hmod=%#lx '%s'", hmod, name));
     763    LOG((CLOG_DEBUG2 "openHookLibrary: hmod=%#lx '%s'", hmod, name));
    765764    return hmod;
    766765}
     
    769768CPMScreen::closeHookLibrary(HMODULE hmod) const
    770769{
    771     LOG((CLOG_DEBUG1 "closeHookLibrary: hmod=%#lx\n", hmod));
     770    LOG((CLOG_DEBUG2 "closeHookLibrary: hmod=%#lx\n", hmod));
    772771    if (hmod != NULL) {
    773772        m_cleanup(m_hab);
     
    911910{
    912911    switch (msg) {
    913     case WM_DRAWCLIPBOARD:
     912
     913        //
     914        // Just freak out and close the clipboard if we get any of these.
     915        //
     916    case WM_RENDERFMT:
     917    case WM_RENDERALLFMTS:
     918    case WM_PAINTCLIPBOARD:
     919    case WM_SIZECLIPBOARD:
     920    case WM_HSCROLLCLIPBOARD:
     921    case WM_VSCROLLCLIPBOARD:
     922        LOG((CLOG_DEBUG "msg=%#x -> closing clipboard.\n", msg));
     923        WinCloseClipbrd(m_hab);
     924        break;
     925
     926        //
     927        // The content has changed.
     928        //
     929    //case WM_DESTROYCLIPBOARD:
     930        case WM_DRAWCLIPBOARD:
    914931        //// first pass on the message
    915932        //if (m_nextClipboardWindow != NULL) {
Note: See TracChangeset for help on using the changeset viewer.