FreeRDP
xf_disp.c File Reference
#include <winpr/assert.h>
#include <winpr/sysinfo.h>
#include <X11/Xutil.h>
#include "xf_disp.h"
#include "xf_monitor.h"
#include <freerdp/log.h>

Macros

#define TAG   CLIENT_TAG("x11disp")
 
#define RESIZE_MIN_DELAY   200 /* minimum delay in ms between two resizes */
 

Functions

static UINT xf_disp_sendLayout (DispClientContext *disp, const rdpMonitor *monitors, UINT32 nmonitors)
 
static BOOL xf_disp_settings_changed (xfDispContext *xfDisp)
 
static BOOL xf_update_last_sent (xfDispContext *xfDisp)
 
static BOOL xf_disp_sendResize (xfDispContext *xfDisp)
 
static BOOL xf_disp_queueResize (xfDispContext *xfDisp, UINT32 width, UINT32 height)
 
static BOOL xf_disp_set_window_resizable (xfDispContext *xfDisp)
 
static BOOL xf_disp_check_context (void *context, xfContext **ppXfc, xfDispContext **ppXfDisp, rdpSettings **ppSettings)
 
static void xf_disp_OnActivated (void *context, const ActivatedEventArgs *e)
 
static void xf_disp_OnGraphicsReset (void *context, const GraphicsResetEventArgs *e)
 
static void xf_disp_OnTimer (void *context, const TimerEventArgs *e)
 
static void xf_disp_OnWindowStateChange (void *context, const WindowStateChangeEventArgs *e)
 
xfDispContext * xf_disp_new (xfContext *xfc)
 
void xf_disp_free (xfDispContext *disp)
 
BOOL xf_disp_handle_xevent (xfContext *xfc, const XEvent *event)
 
BOOL xf_disp_handle_configureNotify (xfContext *xfc, int width, int height)
 
static UINT xf_DisplayControlCaps (DispClientContext *disp, UINT32 maxNumMonitors, UINT32 maxMonitorAreaFactorA, UINT32 maxMonitorAreaFactorB)
 
BOOL xf_disp_init (xfDispContext *xfDisp, DispClientContext *disp)
 
BOOL xf_disp_uninit (xfDispContext *xfDisp, DispClientContext *disp)
 

Macro Definition Documentation

◆ RESIZE_MIN_DELAY

#define RESIZE_MIN_DELAY   200 /* minimum delay in ms between two resizes */

◆ TAG

#define TAG   CLIENT_TAG("x11disp")

FreeRDP: A Remote Desktop Protocol Implementation X11 Display Control channel

Copyright 2017 David Fort conta.nosp@m.ct@h.nosp@m.arden.nosp@m.ing-.nosp@m.consu.nosp@m.ltin.nosp@m.g.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

◆ xf_disp_check_context()

static BOOL xf_disp_check_context ( void *  context,
xfContext **  ppXfc,
xfDispContext **  ppXfDisp,
rdpSettings **  ppSettings 
)
static
Here is the caller graph for this function:

◆ xf_disp_free()

void xf_disp_free ( xfDispContext *  disp)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_handle_configureNotify()

BOOL xf_disp_handle_configureNotify ( xfContext *  xfc,
int  width,
int  height 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_handle_xevent()

BOOL xf_disp_handle_xevent ( xfContext *  xfc,
const XEvent *  event 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_init()

BOOL xf_disp_init ( xfDispContext *  xfDisp,
DispClientContext *  disp 
)

FreeRDP: A Remote Desktop Protocol Implementation X11 Display Control channel

Copyright 2017 David Fort conta.nosp@m.ct@h.nosp@m.arden.nosp@m.ing-.nosp@m.consu.nosp@m.ltin.nosp@m.g.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:

◆ xf_disp_new()

xfDispContext* xf_disp_new ( xfContext *  xfc)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_OnActivated()

static void xf_disp_OnActivated ( void *  context,
const ActivatedEventArgs *  e 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_OnGraphicsReset()

static void xf_disp_OnGraphicsReset ( void *  context,
const GraphicsResetEventArgs *  e 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_OnTimer()

static void xf_disp_OnTimer ( void *  context,
const TimerEventArgs *  e 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_OnWindowStateChange()

static void xf_disp_OnWindowStateChange ( void *  context,
const WindowStateChangeEventArgs *  e 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_queueResize()

static BOOL xf_disp_queueResize ( xfDispContext *  xfDisp,
UINT32  width,
UINT32  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_sendLayout()

UINT xf_disp_sendLayout ( DispClientContext *  disp,
const rdpMonitor monitors,
UINT32  nmonitors 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_sendResize()

static BOOL xf_disp_sendResize ( xfDispContext *  xfDisp)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_set_window_resizable()

static BOOL xf_disp_set_window_resizable ( xfDispContext *  xfDisp)
static
Here is the caller graph for this function:

◆ xf_disp_settings_changed()

static BOOL xf_disp_settings_changed ( xfDispContext *  xfDisp)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_disp_uninit()

BOOL xf_disp_uninit ( xfDispContext *  xfDisp,
DispClientContext *  disp 
)
Here is the caller graph for this function:

◆ xf_DisplayControlCaps()

static UINT xf_DisplayControlCaps ( DispClientContext *  disp,
UINT32  maxNumMonitors,
UINT32  maxMonitorAreaFactorA,
UINT32  maxMonitorAreaFactorB 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ xf_update_last_sent()

static BOOL xf_update_last_sent ( xfDispContext *  xfDisp)
static
Here is the call graph for this function:
Here is the caller graph for this function: