On 16/04/15 08:22, Gerry Boland wrote:
> Review: Needs Fixing
>
> Would catching the exception be easier than all this work?
I don't see the point. The mir exception is thrown when we try to send a
MirEvent containing more than one touch press or release. We shouldn't
be doing that in the first place.
> And is there a Mir bug so we can keep track of Mir fixing their input stream to us? All this event stream sanitizing should be unnecessary.
>
>
> +#include "../../common/debughelpers.h"
> better to include ../../common as a source of headers
Done.
> -Q_LOGGING_CATEGORY(QTMIR_MIR_INPUT, "qtmir.mir.input")
> +Q_LOGGING_CATEGORY(QTMIR_MIR_INPUT, "qtmir.mir.input", QtWarningMsg)
> what does this give us?
It means that by default only warnings or more severe message types
(criticals) will be logged. So we won't spam logs with debug messages by
default. This is particularly important here as I added a debug messages
for every single input event coming or leaving QtEventFeeder.
On 16/04/15 08:22, Gerry Boland wrote:
> Review: Needs Fixing
>
> Would catching the exception be easier than all this work?
I don't see the point. The mir exception is thrown when we try to send a
MirEvent containing more than one touch press or release. We shouldn't
be doing that in the first place.
> And is there a Mir bug so we can keep track of Mir fixing their input stream to us? All this event stream sanitizing should be unnecessary.
There's this one at least: https:/ /bugs.launchpad .net/mir/ +bug/1439285
> common/ debughelpers. h" CATEGORY( QTMIR_MIR_ INPUT, "qtmir.mir.input") CATEGORY( QTMIR_MIR_ INPUT, "qtmir.mir.input", QtWarningMsg)
>
> +#include "../../
> better to include ../../common as a source of headers
Done.
> -Q_LOGGING_
> +Q_LOGGING_
> what does this give us?
It means that by default only warnings or more severe message types
(criticals) will be logged. So we won't spam logs with debug messages by
default. This is particularly important here as I added a debug messages
for every single input event coming or leaving QtEventFeeder.