diff options
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/ignore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/ignore.cpp b/src/mir_app/src/ignore.cpp index a0775b48be..10ee55d64e 100644 --- a/src/mir_app/src/ignore.cpp +++ b/src/mir_app/src/ignore.cpp @@ -347,7 +347,7 @@ static INT_PTR IsIgnored(WPARAM wParam, LPARAM lParam) DWORD mask = GetMask(wParam);
if (lParam < 1 || lParam > IGNOREEVENT_MAX)
return 1;
- return (mask >> (lParam - 1)) & 1;
+ return (masks[lParam-1] & mask) != 0;
}
static INT_PTR Ignore(WPARAM wParam, LPARAM lParam)
@@ -358,7 +358,7 @@ static INT_PTR Ignore(WPARAM wParam, LPARAM lParam) if (lParam == IGNOREEVENT_ALL)
mask = 0xFFFF;
else
- mask |= 1 << (masks[lParam-1]);
+ mask |= masks[lParam-1];
SaveItemValue(wParam, "Mask1", mask);
return 0;
}
|