From f32a46370cdad0cc1b7388056cbc27c4be1fd127 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 27 Feb 2020 08:51:14 +0100 Subject: [PATCH] X11 XEvent disp refactored to use const arguments --- client/X11/xf_disp.c | 2 +- client/X11/xf_disp.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/X11/xf_disp.c b/client/X11/xf_disp.c index 8c596527d..a9d2ee8f8 100644 --- a/client/X11/xf_disp.c +++ b/client/X11/xf_disp.c @@ -348,7 +348,7 @@ UINT xf_disp_sendLayout(DispClientContext* disp, rdpMonitor* monitors, int nmoni return ret; } -BOOL xf_disp_handle_xevent(xfContext* xfc, XEvent* event) +BOOL xf_disp_handle_xevent(xfContext* xfc, const XEvent* event) { xfDispContext* xfDisp; rdpSettings* settings; diff --git a/client/X11/xf_disp.h b/client/X11/xf_disp.h index 6e2db4164..90625015e 100644 --- a/client/X11/xf_disp.h +++ b/client/X11/xf_disp.h @@ -30,7 +30,7 @@ FREERDP_API BOOL xf_disp_uninit(xfDispContext* xfDisp, DispClientContext* disp); xfDispContext* xf_disp_new(xfContext* xfc); void xf_disp_free(xfDispContext* disp); -BOOL xf_disp_handle_xevent(xfContext* xfc, XEvent* event); +BOOL xf_disp_handle_xevent(xfContext* xfc, const XEvent* event); BOOL xf_disp_handle_configureNotify(xfContext* xfc, int width, int height); void xf_disp_resized(xfDispContext* disp);