From 5800d10f6a9185508a3e2a25f223515e212963b9 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 26 Apr 2019 16:14:23 +0000 Subject: [PATCH] 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. --- lib/libvgl/simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libvgl/simple.c b/lib/libvgl/simple.c index 9cb4311b033c..ea8d6ec336db 100644 --- a/lib/libvgl/simple.c +++ b/lib/libvgl/simple.c @@ -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);