Author: bde
Date: Fri Apr 26 16:14:23 2019
New Revision: 346752
URL: https://svnweb.freebsd.org/changeset/base/346752

Log:
  In VGLClear(), check for the overlap of the mouse cursor in the whole
  display, not just in the unpanned top left corner.  This currently
  makes no difference since the kernel erroneously doesn't allow moving
  the cursor completely outside of the unpanned corner.

Modified:
  head/lib/libvgl/simple.c

Modified: head/lib/libvgl/simple.c
==============================================================================
--- head/lib/libvgl/simple.c    Fri Apr 26 15:43:14 2019        (r346751)
+++ head/lib/libvgl/simple.c    Fri Apr 26 16:14:23 2019        (r346752)
@@ -476,7 +476,7 @@ VGLClear(VGLBitmap *object, u_long color)
   VGLCheckSwitch();
   if (object == VGLDisplay) {
     VGLMouseFreeze();
-    mouseoverlap = VGLMouseOverlap(0, 0, object->Xsize, object->Ysize);
+    mouseoverlap = VGLMouseOverlap(0, 0, object->VXsize, object->VYsize);
     if (mouseoverlap)
       VGLMousePointerHide();
     VGLClear(&VGLVDisplay, color);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to