client: wayland: Move RDPEI assertion past RDPEI availability check
The wlf_handle_touch_down() implements fallback to mouse event submission in case RDPEI is not available. This fallback is currently never reached, because the WINPR_ASSERT(rdpei); triggers before the fallback conditional is reached. Move the WINPR_ASSERT(rdpei); after the RDPEI availability check to permit the fallback to do its job. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
ed73cf0d17
commit
487894b5bb
@ -473,7 +473,6 @@ BOOL wlf_handle_touch_down(freerdp* instance, const UwacTouchDown* ev)
|
||||
return FALSE;
|
||||
|
||||
RdpeiClientContext* rdpei = wlf->rdpei;
|
||||
WINPR_ASSERT(rdpei);
|
||||
|
||||
// Emulate mouse click if touch is not possible, like in login screen
|
||||
if (!rdpei)
|
||||
@ -492,6 +491,8 @@ BOOL wlf_handle_touch_down(freerdp* instance, const UwacTouchDown* ev)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
WINPR_ASSERT(rdpei);
|
||||
|
||||
WINPR_ASSERT(rdpei->TouchBegin);
|
||||
rdpei->TouchBegin(rdpei, touchId, x, y, &contactId);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user