~ubuntu-branches/ubuntu/edgy/xorg-server/edgy-updates

« back to all changes in this revision

Viewing changes to hw/xwin/winwndproc.c

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 */
54
54
 
55
55
Bool                            g_fCursor = TRUE;
 
56
Bool                            g_fButton[3] = { FALSE, FALSE, FALSE };
56
57
 
57
58
 
58
59
/*
917
918
        case WIN_POLLING_MOUSE_TIMER_ID:
918
919
          {
919
920
            POINT               point;
 
921
            WPARAM              wL, wM, wR, wShift, wCtrl;
 
922
            LPARAM              lPos;
920
923
            
921
924
            /* Get the current position of the mouse cursor */
922
925
            GetCursorPos (&point);
928
931
            /* Deliver absolute cursor position to X Server */
929
932
            miPointerAbsoluteCursor (point.x, point.y,
930
933
                                     g_c32LastInputEventTime = GetTickCount());
 
934
 
 
935
            /* Check if a button was released but we didn't see it */
 
936
            GetCursorPos (&point);
 
937
            wL = (GetKeyState (VK_LBUTTON) & 0x8000)?MK_LBUTTON:0;
 
938
            wM = (GetKeyState (VK_MBUTTON) & 0x8000)?MK_MBUTTON:0;
 
939
            wR = (GetKeyState (VK_RBUTTON) & 0x8000)?MK_RBUTTON:0;
 
940
            wShift = (GetKeyState (VK_SHIFT) & 0x8000)?MK_SHIFT:0;
 
941
            wCtrl = (GetKeyState (VK_CONTROL) & 0x8000)?MK_CONTROL:0;
 
942
            lPos = MAKELPARAM(point.x, point.y);
 
943
            if (g_fButton[0] & !wL)
 
944
            PostMessage (hwnd, WM_LBUTTONUP, wCtrl|wM|wR|wShift, lPos);
 
945
            if (g_fButton[1] & !wM)
 
946
              PostMessage (hwnd, WM_MBUTTONUP, wCtrl|wL|wR|wShift, lPos);
 
947
            if (g_fButton[2] & !wR)
 
948
              PostMessage (hwnd, WM_RBUTTONUP, wCtrl|wL|wM|wShift, lPos);
931
949
          }
932
950
        }
933
951
      return 0;