mirror of
https://github.com/greenshot/greenshot
synced 2025-07-06 04:52:16 -07:00
Removed some chattiness in the log. [skip ci]
This commit is contained in:
parent
8014199bb6
commit
4a66a4dbe2
1 changed files with 6 additions and 9 deletions
|
@ -51,16 +51,13 @@ namespace Greenshot.Base.Core
|
|||
public static bool PreFilterMessageExternal(ref Message m)
|
||||
{
|
||||
WindowsMessages message = (WindowsMessages) m.Msg;
|
||||
if (message == WindowsMessages.WM_INPUTLANGCHANGEREQUEST || message == WindowsMessages.WM_INPUTLANGCHANGE)
|
||||
{
|
||||
LOG.WarnFormat("Filtering: {0}, {1:X} - {2:X} - {3:X}", message, m.LParam.ToInt64(), m.WParam.ToInt64(), m.HWnd.ToInt64());
|
||||
if (message != WindowsMessages.WM_INPUTLANGCHANGEREQUEST && message != WindowsMessages.WM_INPUTLANGCHANGE) return false;
|
||||
|
||||
LOG.DebugFormat("Filtering: {0}, {1:X} - {2:X} - {3:X}", message, m.LParam.ToInt64(), m.WParam.ToInt64(), m.HWnd.ToInt64());
|
||||
// For now we always return true
|
||||
return true;
|
||||
// But it could look something like this:
|
||||
//return (m.LParam.ToInt64() | 0x7FFFFFFF) != 0;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue