FreeRDP
xf_event.c File Reference
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <freerdp/log.h>
#include <freerdp/locale/keyboard.h>
#include "xf_rail.h"
#include "xf_window.h"
#include "xf_cliprdr.h"
#include "xf_disp.h"
#include "xf_input.h"
#include "xf_gfx.h"
#include "xf_event.h"

Macros

#define TAG   CLIENT_TAG("x11")
 
#define CLAMP_COORDINATES(x, y)   if (x < 0) x = 0; if (y < 0) y = 0
 
#define DEBUG_X11(...)   do { } while (0)
 

Functions

static const char * x11_event_string (int event)
 
BOOL xf_event_action_script_init (xfContext *xfc)
 
void xf_event_action_script_free (xfContext *xfc)
 
static BOOL xf_event_execute_action_script (xfContext *xfc, XEvent *event)
 
void xf_event_adjust_coordinates (xfContext *xfc, int *x, int *y)
 
static BOOL xf_event_Expose (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_VisibilityNotify (xfContext *xfc, XEvent *event, BOOL app)
 
BOOL xf_generic_MotionNotify (xfContext *xfc, int x, int y, int state, Window window, BOOL app)
 
static BOOL xf_event_MotionNotify (xfContext *xfc, XEvent *event, BOOL app)
 
BOOL xf_generic_ButtonEvent (xfContext *xfc, int x, int y, int button, Window window, BOOL app, BOOL down)
 
static BOOL xf_event_ButtonPress (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_ButtonRelease (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_KeyPress (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_KeyRelease (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_FocusIn (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_FocusOut (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_MappingNotify (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_ClientMessage (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_EnterNotify (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_LeaveNotify (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_ConfigureNotify (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_MapNotify (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_UnmapNotify (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_PropertyNotify (xfContext *xfc, XEvent *event, BOOL app)
 
static BOOL xf_event_suppress_events (xfContext *xfc, xfAppWindow *appWindow, XEvent *event)
 
BOOL xf_event_process (freerdp *instance, XEvent *event)
 

Macro Definition Documentation

#define CLAMP_COORDINATES (   x,
  y 
)    if (x < 0) x = 0; if (y < 0) y = 0
#define DEBUG_X11 (   ...)    do { } while (0)
#define TAG   CLIENT_TAG("x11")

FreeRDP: A Remote Desktop Protocol Implementation X11 Event Handling

Copyright 2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

static const char* x11_event_string ( int  event)
static

Here is the caller graph for this function:

void xf_event_action_script_free ( xfContext *  xfc)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL xf_event_action_script_init ( xfContext *  xfc)

FreeRDP: A Remote Desktop Protocol Implementation X11 Event Handling

Copyright 2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:

Here is the caller graph for this function:

void xf_event_adjust_coordinates ( xfContext *  xfc,
int *  x,
int *  y 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_ButtonPress ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_ButtonRelease ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_ClientMessage ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_ConfigureNotify ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_EnterNotify ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_execute_action_script ( xfContext *  xfc,
XEvent *  event 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_Expose ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_FocusIn ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_FocusOut ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_KeyPress ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_KeyRelease ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_LeaveNotify ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the caller graph for this function:

static BOOL xf_event_MapNotify ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_MappingNotify ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the caller graph for this function:

static BOOL xf_event_MotionNotify ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL xf_event_process ( freerdp *  instance,
XEvent *  event 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_PropertyNotify ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_suppress_events ( xfContext *  xfc,
xfAppWindow *  appWindow,
XEvent *  event 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_UnmapNotify ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL xf_event_VisibilityNotify ( xfContext *  xfc,
XEvent *  event,
BOOL  app 
)
static

Here is the caller graph for this function:

BOOL xf_generic_ButtonEvent ( xfContext *  xfc,
int  x,
int  y,
int  button,
Window  window,
BOOL  app,
BOOL  down 
)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL xf_generic_MotionNotify ( xfContext *  xfc,
int  x,
int  y,
int  state,
Window  window,
BOOL  app 
)

Here is the call graph for this function:

Here is the caller graph for this function: