add #ifdef __unix__ around filter of bits 13 and above on state var in callback()

This commit is contained in:
stefan schippers 2023-09-27 21:00:02 +02:00
parent e7c53b59b5
commit ba00ba2921
1 changed files with 2 additions and 0 deletions

View File

@ -1102,7 +1102,9 @@ int draw_xhair = tclgetboolvar("draw_crosshair");
c_snap = tclgetdoublevar("cadsnap");
state &= ~Mod2Mask; /* 20170511 filter out NumLock status */
#ifdef __unix__
state &= (1 <<13) -1; /* filter out anything above bit 12 (4096) */
#endif
if(xctx->semaphore >= 2)
{
if(debug_var>=2)