20#ifndef FREERDP_CLIENT_X11_EVENT_H
21#define FREERDP_CLIENT_X11_EVENT_H
23#include "xf_keyboard.h"
28const char* x11_event_string(
int event);
30BOOL xf_event_action_script_init(xfContext* xfc);
31void xf_event_action_script_free(xfContext* xfc);
33BOOL xf_event_process(freerdp* instance,
const XEvent* event);
36BOOL xf_event_update_screen(freerdp* instance);
38void xf_event_SendClientEvent(xfContext* xfc, xfWindow* window, Atom atom,
unsigned int numArgs,
41void xf_event_adjust_coordinates(xfContext* xfc,
int* x,
int* y);
42void xf_adjust_coordinates_to_screen(xfContext* xfc, UINT32* x, UINT32* y);
44#define xf_generic_MotionNotify(xfc, x, y, window, app) \
45 xf_generic_MotionNotify_((xfc), (x), (y), (window), (app), __FILE__, __func__, __LINE__)
46BOOL xf_generic_MotionNotify_(xfContext* xfc,
int x,
int y, Window window, BOOL app,
47 const char* file,
const char* fkt,
size_t line);
49#define xf_generic_RawMotionNotify(xfc, x, y, window, app) \
50 xf_generic_RawMotionNotify_((xfc), (x), (y), (window), (app), __FILE__, __func__, __LINE__)
51BOOL xf_generic_RawMotionNotify_(xfContext* xfc,
int x,
int y, Window window, BOOL app,
52 const char* file,
const char* fkt,
size_t line);
54#define xf_generic_ButtonEvent(xfc, x, y, button, window, app, down) \
55 xf_generic_ButtonEvent_((xfc), (x), (y), (button), (window), (app), (down), __FILE__, \
57BOOL xf_generic_ButtonEvent_(xfContext* xfc,
int x,
int y,
int button, Window window, BOOL app,
58 BOOL down,
const char* file,
const char* fkt,
size_t line);
60#define xf_generic_RawButtonEvent(xfc, button, app, down) \
61 xf_generic_RawButtonEvent_((xfc), (button), (app), (down), __FILE__, __func__, __LINE__)
62BOOL xf_generic_RawButtonEvent_(xfContext* xfc,
int button, BOOL app, BOOL down,
const char* file,
63 const char* fkt,
size_t line);