FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

pm: missing test for valid mouse coordinates · gnuplot/gnuplot@c54ccd3 · GitHub

Repository navigation

Commit c54ccd3

Browse files
committed
pm: missing test for valid mouse coordinates
1 parent 77ea54d commit c54ccd3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/os2/gclient.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,9 @@ EXPENTRY DisplayClientWndProc(HWND hWnd, ULONG message, MPARAM mp1, MPARAM mp2)
602602
WinSetPointer(HWND_DESKTOP, hptrDefault); /* set default pointer */
603603
return 0L;
604604
}
605+
/* check for valid mouse parameters */
606+
if ((mx <= 0) && (my <= 0))
607+
return 0L;
605608
/* was the mouse moved? */
606609
if ((prev_mx != mx) || (prev_my != my)) {
607610
WinSetPointer(HWND_DESKTOP, hptrCurrent);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL