2013-04-28 08:23:36 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* X11 Client
|
|
|
|
*
|
|
|
|
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
2016-04-05 18:07:45 +03:00
|
|
|
* Copyright 2016 Thincast Technologies GmbH
|
|
|
|
* Copyright 2016 Armin Novak <armin.novak@thincast.com>
|
2013-04-28 08:23:36 +04:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#ifndef FREERDP_CLIENT_X11_FREERDP_H
|
|
|
|
#define FREERDP_CLIENT_X11_FREERDP_H
|
2013-04-28 08:23:36 +04:00
|
|
|
|
2022-02-16 13:20:38 +03:00
|
|
|
#include <freerdp/config.h>
|
2020-02-25 17:21:16 +03:00
|
|
|
|
2013-06-14 04:25:50 +04:00
|
|
|
typedef struct xf_context xfContext;
|
|
|
|
|
2020-09-08 18:12:27 +03:00
|
|
|
#ifdef WITH_XCURSOR
|
|
|
|
#include <X11/Xcursor/Xcursor.h>
|
|
|
|
#endif
|
|
|
|
|
2021-09-01 10:44:11 +03:00
|
|
|
#ifdef WITH_XI
|
|
|
|
#include <X11/extensions/XInput2.h>
|
|
|
|
#endif
|
|
|
|
|
2013-09-04 05:48:26 +04:00
|
|
|
#include <freerdp/api.h>
|
|
|
|
|
2013-04-28 08:23:36 +04:00
|
|
|
#include "xf_window.h"
|
|
|
|
#include "xf_monitor.h"
|
2013-05-14 03:17:25 +04:00
|
|
|
#include "xf_channels.h"
|
2013-04-28 08:23:36 +04:00
|
|
|
|
2020-02-25 17:21:16 +03:00
|
|
|
#if defined(CHANNEL_TSMF_CLIENT)
|
|
|
|
#include <freerdp/client/tsmf.h>
|
|
|
|
#endif
|
|
|
|
|
2014-06-05 02:03:25 +04:00
|
|
|
#include <freerdp/gdi/gdi.h>
|
|
|
|
#include <freerdp/codec/rfx.h>
|
|
|
|
#include <freerdp/codec/nsc.h>
|
2014-06-14 01:30:13 +04:00
|
|
|
#include <freerdp/codec/clear.h>
|
2014-06-05 02:03:25 +04:00
|
|
|
#include <freerdp/codec/color.h>
|
|
|
|
#include <freerdp/codec/bitmap.h>
|
2014-07-02 07:28:09 +04:00
|
|
|
#include <freerdp/codec/h264.h>
|
2014-07-29 07:41:16 +04:00
|
|
|
#include <freerdp/codec/progressive.h>
|
2014-06-05 06:49:03 +04:00
|
|
|
#include <freerdp/codec/region.h>
|
2014-06-05 02:03:25 +04:00
|
|
|
|
2020-09-08 18:12:27 +03:00
|
|
|
#if !defined(XcursorUInt)
|
|
|
|
typedef unsigned int XcursorUInt;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(XcursorPixel)
|
|
|
|
typedef XcursorUInt XcursorPixel;
|
|
|
|
#endif
|
|
|
|
|
2015-02-23 20:22:28 +03:00
|
|
|
struct xf_FullscreenMonitors
|
|
|
|
{
|
|
|
|
UINT32 top;
|
|
|
|
UINT32 bottom;
|
|
|
|
UINT32 left;
|
|
|
|
UINT32 right;
|
|
|
|
};
|
|
|
|
typedef struct xf_FullscreenMonitors xfFullscreenMonitors;
|
|
|
|
|
2013-04-28 08:23:36 +04:00
|
|
|
struct xf_WorkArea
|
|
|
|
{
|
|
|
|
UINT32 x;
|
|
|
|
UINT32 y;
|
|
|
|
UINT32 width;
|
|
|
|
UINT32 height;
|
|
|
|
};
|
|
|
|
typedef struct xf_WorkArea xfWorkArea;
|
|
|
|
|
|
|
|
struct xf_pointer
|
|
|
|
{
|
|
|
|
rdpPointer pointer;
|
2020-09-08 18:12:27 +03:00
|
|
|
XcursorPixel* cursorPixels;
|
|
|
|
UINT32 nCursors;
|
|
|
|
UINT32 mCursors;
|
|
|
|
UINT32* cursorWidths;
|
|
|
|
UINT32* cursorHeights;
|
|
|
|
Cursor* cursors;
|
2013-04-28 08:23:36 +04:00
|
|
|
Cursor cursor;
|
|
|
|
};
|
|
|
|
typedef struct xf_pointer xfPointer;
|
|
|
|
|
|
|
|
struct xf_bitmap
|
|
|
|
{
|
|
|
|
rdpBitmap bitmap;
|
|
|
|
Pixmap pixmap;
|
2017-03-28 12:49:47 +03:00
|
|
|
XImage* image;
|
2013-04-28 08:23:36 +04:00
|
|
|
};
|
|
|
|
typedef struct xf_bitmap xfBitmap;
|
|
|
|
|
|
|
|
struct xf_glyph
|
|
|
|
{
|
|
|
|
rdpGlyph glyph;
|
|
|
|
Pixmap pixmap;
|
|
|
|
};
|
|
|
|
typedef struct xf_glyph xfGlyph;
|
|
|
|
|
2014-10-15 06:24:07 +04:00
|
|
|
typedef struct xf_clipboard xfClipboard;
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct s_xfDispContext xfDispContext;
|
|
|
|
typedef struct s_xfVideoContext xfVideoContext;
|
2018-11-10 12:51:30 +03:00
|
|
|
typedef struct xf_rail_icon_cache xfRailIconCache;
|
2014-10-15 06:24:07 +04:00
|
|
|
|
2015-07-13 23:59:18 +03:00
|
|
|
/* Number of buttons that are mapped from X11 to RDP button events. */
|
2018-12-10 16:25:07 +03:00
|
|
|
#define NUM_BUTTONS_MAPPED 11
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int button;
|
|
|
|
UINT16 flags;
|
|
|
|
} button_map;
|
2015-07-13 23:59:18 +03:00
|
|
|
|
2021-09-01 10:44:11 +03:00
|
|
|
#if defined(WITH_XI)
|
|
|
|
#define MAX_CONTACTS 20
|
|
|
|
|
|
|
|
typedef struct touch_contact
|
|
|
|
{
|
|
|
|
int id;
|
|
|
|
int count;
|
|
|
|
double pos_x;
|
|
|
|
double pos_y;
|
|
|
|
double last_x;
|
|
|
|
double last_y;
|
|
|
|
|
|
|
|
} touchContact;
|
|
|
|
#endif
|
|
|
|
|
2013-04-28 08:23:36 +04:00
|
|
|
struct xf_context
|
|
|
|
{
|
2022-01-19 11:27:39 +03:00
|
|
|
rdpClientContext common;
|
2013-04-28 08:23:36 +04:00
|
|
|
|
|
|
|
GC gc;
|
|
|
|
int xfds;
|
|
|
|
int depth;
|
2016-07-19 17:15:38 +03:00
|
|
|
|
2013-04-28 08:23:36 +04:00
|
|
|
GC gc_mono;
|
2014-09-17 03:12:26 +04:00
|
|
|
BOOL invert;
|
2013-04-28 08:23:36 +04:00
|
|
|
Screen* screen;
|
|
|
|
XImage* image;
|
|
|
|
Pixmap primary;
|
|
|
|
Pixmap drawing;
|
|
|
|
Visual* visual;
|
|
|
|
Display* display;
|
|
|
|
Drawable drawable;
|
|
|
|
Pixmap bitmap_mono;
|
|
|
|
Colormap colormap;
|
|
|
|
int screen_number;
|
|
|
|
int scanline_pad;
|
|
|
|
BOOL big_endian;
|
|
|
|
BOOL fullscreen;
|
2015-02-10 23:15:30 +03:00
|
|
|
BOOL decorations;
|
2013-04-28 08:23:36 +04:00
|
|
|
BOOL grab_keyboard;
|
|
|
|
BOOL unobscured;
|
|
|
|
BOOL debug;
|
2015-01-30 17:47:02 +03:00
|
|
|
HANDLE x11event;
|
2013-04-28 08:23:36 +04:00
|
|
|
xfWindow* window;
|
2014-11-12 06:27:33 +03:00
|
|
|
xfAppWindow* appWindow;
|
2013-08-04 00:13:39 +04:00
|
|
|
xfPointer* pointer;
|
2013-04-28 08:23:36 +04:00
|
|
|
xfWorkArea workArea;
|
2015-02-23 20:22:28 +03:00
|
|
|
xfFullscreenMonitors fullscreenMonitors;
|
2013-04-28 08:23:36 +04:00
|
|
|
int current_desktop;
|
|
|
|
BOOL remote_app;
|
|
|
|
HANDLE mutex;
|
|
|
|
BOOL UseXThreads;
|
2013-08-04 00:13:39 +04:00
|
|
|
BOOL cursorHidden;
|
2013-04-28 08:23:36 +04:00
|
|
|
|
|
|
|
HGDI_DC hdc;
|
2014-09-12 06:29:09 +04:00
|
|
|
UINT32 bitmap_size;
|
|
|
|
BYTE* bitmap_buffer;
|
2013-04-28 08:23:36 +04:00
|
|
|
|
|
|
|
BOOL frame_begin;
|
|
|
|
|
2013-05-09 05:51:16 +04:00
|
|
|
int XInputOpcode;
|
|
|
|
|
2015-04-16 18:29:52 +03:00
|
|
|
int savedWidth;
|
|
|
|
int savedHeight;
|
|
|
|
int savedPosX;
|
|
|
|
int savedPosY;
|
|
|
|
|
2014-12-01 13:56:44 +03:00
|
|
|
#ifdef WITH_XRENDER
|
|
|
|
int scaledWidth;
|
|
|
|
int scaledHeight;
|
2013-05-14 02:29:55 +04:00
|
|
|
int offset_x;
|
|
|
|
int offset_y;
|
2014-12-01 13:56:44 +03:00
|
|
|
#endif
|
2013-05-14 02:29:55 +04:00
|
|
|
|
2013-04-28 08:23:36 +04:00
|
|
|
BOOL focused;
|
|
|
|
BOOL mouse_active;
|
|
|
|
BOOL fullscreen_toggle;
|
2014-03-14 05:10:22 +04:00
|
|
|
UINT32 KeyboardLayout;
|
|
|
|
BOOL KeyboardState[256];
|
|
|
|
XModifierKeymap* modifierMap;
|
2014-03-22 22:40:52 +04:00
|
|
|
wArrayList* keyCombinations;
|
2014-03-23 01:12:50 +04:00
|
|
|
wArrayList* xevents;
|
2017-02-06 07:54:54 +03:00
|
|
|
BOOL actionScriptExists;
|
2014-03-22 22:40:52 +04:00
|
|
|
|
2022-11-25 16:14:56 +03:00
|
|
|
int attribs_mask;
|
2013-04-28 08:23:36 +04:00
|
|
|
XSetWindowAttributes attribs;
|
|
|
|
BOOL complex_regions;
|
|
|
|
VIRTUAL_SCREEN vscreen;
|
2020-02-25 17:21:16 +03:00
|
|
|
#if defined(CHANNEL_TSMF_CLIENT)
|
2013-04-28 08:23:36 +04:00
|
|
|
void* xv_context;
|
2020-02-25 17:21:16 +03:00
|
|
|
#endif
|
2013-04-28 08:23:36 +04:00
|
|
|
|
2017-12-20 14:02:23 +03:00
|
|
|
Atom* supportedAtoms;
|
|
|
|
unsigned long supportedAtomCount;
|
|
|
|
|
2015-10-15 22:59:53 +03:00
|
|
|
Atom UTF8_STRING;
|
|
|
|
|
2020-10-27 16:17:37 +03:00
|
|
|
Atom _XWAYLAND_MAY_GRAB_KEYBOARD;
|
|
|
|
|
2013-04-28 08:23:36 +04:00
|
|
|
Atom _NET_WM_ICON;
|
|
|
|
Atom _MOTIF_WM_HINTS;
|
|
|
|
Atom _NET_CURRENT_DESKTOP;
|
|
|
|
Atom _NET_WORKAREA;
|
|
|
|
|
2017-12-20 14:02:23 +03:00
|
|
|
Atom _NET_SUPPORTED;
|
2021-12-20 14:12:06 +03:00
|
|
|
Atom _NET_SUPPORTING_WM_CHECK;
|
2017-12-20 14:02:23 +03:00
|
|
|
|
2013-04-28 08:23:36 +04:00
|
|
|
Atom _NET_WM_STATE;
|
|
|
|
Atom _NET_WM_STATE_FULLSCREEN;
|
2015-10-15 22:59:53 +03:00
|
|
|
Atom _NET_WM_STATE_MAXIMIZED_HORZ;
|
|
|
|
Atom _NET_WM_STATE_MAXIMIZED_VERT;
|
2013-04-28 08:23:36 +04:00
|
|
|
Atom _NET_WM_STATE_SKIP_TASKBAR;
|
|
|
|
Atom _NET_WM_STATE_SKIP_PAGER;
|
|
|
|
|
2015-02-23 20:22:28 +03:00
|
|
|
Atom _NET_WM_FULLSCREEN_MONITORS;
|
|
|
|
|
2015-10-15 22:59:53 +03:00
|
|
|
Atom _NET_WM_NAME;
|
|
|
|
Atom _NET_WM_PID;
|
|
|
|
|
2013-04-28 08:23:36 +04:00
|
|
|
Atom _NET_WM_WINDOW_TYPE;
|
|
|
|
Atom _NET_WM_WINDOW_TYPE_NORMAL;
|
|
|
|
Atom _NET_WM_WINDOW_TYPE_DIALOG;
|
|
|
|
Atom _NET_WM_WINDOW_TYPE_UTILITY;
|
|
|
|
Atom _NET_WM_WINDOW_TYPE_POPUP;
|
2018-09-26 12:13:06 +03:00
|
|
|
Atom _NET_WM_WINDOW_TYPE_POPUP_MENU;
|
2013-04-28 08:23:36 +04:00
|
|
|
Atom _NET_WM_WINDOW_TYPE_DROPDOWN_MENU;
|
|
|
|
|
|
|
|
Atom _NET_WM_MOVERESIZE;
|
|
|
|
Atom _NET_MOVERESIZE_WINDOW;
|
|
|
|
|
|
|
|
Atom WM_STATE;
|
|
|
|
Atom WM_PROTOCOLS;
|
|
|
|
Atom WM_DELETE_WINDOW;
|
2013-05-14 03:17:25 +04:00
|
|
|
|
|
|
|
/* Channels */
|
2020-02-25 17:21:16 +03:00
|
|
|
#if defined(CHANNEL_TSMF_CLIENT)
|
2017-11-29 12:26:04 +03:00
|
|
|
TsmfClientContext* tsmf;
|
2020-02-25 17:21:16 +03:00
|
|
|
#endif
|
|
|
|
|
2017-11-29 12:26:04 +03:00
|
|
|
xfClipboard* clipboard;
|
|
|
|
CliprdrClientContext* cliprdr;
|
2018-02-08 10:55:27 +03:00
|
|
|
xfVideoContext* xfVideo;
|
2017-12-20 14:02:23 +03:00
|
|
|
xfDispContext* xfDisp;
|
2014-11-12 01:49:29 +03:00
|
|
|
|
2014-11-12 00:35:30 +03:00
|
|
|
RailClientContext* rail;
|
2014-11-12 01:49:29 +03:00
|
|
|
wHashTable* railWindows;
|
2018-11-10 12:51:30 +03:00
|
|
|
xfRailIconCache* railIconCache;
|
2014-10-06 12:37:37 +04:00
|
|
|
|
|
|
|
BOOL xkbAvailable;
|
2014-12-03 17:41:10 +03:00
|
|
|
BOOL xrenderAvailable;
|
2015-07-13 23:59:18 +03:00
|
|
|
|
|
|
|
/* value to be sent over wire for each logical client mouse button */
|
2018-12-10 16:25:07 +03:00
|
|
|
button_map button_map[NUM_BUTTONS_MAPPED];
|
2017-12-20 14:02:23 +03:00
|
|
|
BYTE savedMaximizedState;
|
2020-03-04 13:33:06 +03:00
|
|
|
UINT32 locked;
|
2020-06-29 09:39:09 +03:00
|
|
|
BOOL firstPressRightCtrl;
|
|
|
|
BOOL ungrabKeyboardWithRightCtrl;
|
2021-09-01 10:44:11 +03:00
|
|
|
|
|
|
|
#if defined(WITH_XI)
|
|
|
|
touchContact contacts[MAX_CONTACTS];
|
|
|
|
int active_contacts;
|
|
|
|
int lastEvType;
|
|
|
|
XIDeviceEvent lastEvent;
|
|
|
|
double firstDist;
|
|
|
|
double lastDist;
|
|
|
|
double z_vector;
|
|
|
|
double px_vector;
|
|
|
|
double py_vector;
|
|
|
|
#endif
|
2022-01-22 15:29:28 +03:00
|
|
|
BOOL xi_rawevent;
|
|
|
|
BOOL xi_event;
|
2013-04-28 08:23:36 +04:00
|
|
|
};
|
|
|
|
|
2015-02-09 19:33:55 +03:00
|
|
|
BOOL xf_create_window(xfContext* xfc);
|
2022-11-25 16:14:56 +03:00
|
|
|
BOOL xf_create_image(xfContext* xfc);
|
2013-06-13 02:57:25 +04:00
|
|
|
void xf_toggle_fullscreen(xfContext* xfc);
|
2014-07-01 01:17:06 +04:00
|
|
|
|
2013-04-28 08:23:36 +04:00
|
|
|
enum XF_EXIT_CODE
|
|
|
|
{
|
|
|
|
/* section 0-15: protocol-independent codes */
|
|
|
|
XF_EXIT_SUCCESS = 0,
|
|
|
|
XF_EXIT_DISCONNECT = 1,
|
|
|
|
XF_EXIT_LOGOFF = 2,
|
|
|
|
XF_EXIT_IDLE_TIMEOUT = 3,
|
|
|
|
XF_EXIT_LOGON_TIMEOUT = 4,
|
|
|
|
XF_EXIT_CONN_REPLACED = 5,
|
|
|
|
XF_EXIT_OUT_OF_MEMORY = 6,
|
|
|
|
XF_EXIT_CONN_DENIED = 7,
|
|
|
|
XF_EXIT_CONN_DENIED_FIPS = 8,
|
|
|
|
XF_EXIT_USER_PRIVILEGES = 9,
|
|
|
|
XF_EXIT_FRESH_CREDENTIALS_REQUIRED = 10,
|
|
|
|
XF_EXIT_DISCONNECT_BY_USER = 11,
|
|
|
|
|
|
|
|
/* section 16-31: license error set */
|
|
|
|
XF_EXIT_LICENSE_INTERNAL = 16,
|
|
|
|
XF_EXIT_LICENSE_NO_LICENSE_SERVER = 17,
|
|
|
|
XF_EXIT_LICENSE_NO_LICENSE = 18,
|
|
|
|
XF_EXIT_LICENSE_BAD_CLIENT_MSG = 19,
|
|
|
|
XF_EXIT_LICENSE_HWID_DOESNT_MATCH = 20,
|
|
|
|
XF_EXIT_LICENSE_BAD_CLIENT = 21,
|
|
|
|
XF_EXIT_LICENSE_CANT_FINISH_PROTOCOL = 22,
|
|
|
|
XF_EXIT_LICENSE_CLIENT_ENDED_PROTOCOL = 23,
|
|
|
|
XF_EXIT_LICENSE_BAD_CLIENT_ENCRYPTION = 24,
|
|
|
|
XF_EXIT_LICENSE_CANT_UPGRADE = 25,
|
|
|
|
XF_EXIT_LICENSE_NO_REMOTE_CONNECTIONS = 26,
|
|
|
|
|
|
|
|
/* section 32-127: RDP protocol error set */
|
|
|
|
XF_EXIT_RDP = 32,
|
|
|
|
|
|
|
|
/* section 128-254: xfreerdp specific exit codes */
|
|
|
|
XF_EXIT_PARSE_ARGUMENTS = 128,
|
|
|
|
XF_EXIT_MEMORY = 129,
|
|
|
|
XF_EXIT_PROTOCOL = 130,
|
|
|
|
XF_EXIT_CONN_FAILED = 131,
|
2015-09-03 22:45:40 +03:00
|
|
|
XF_EXIT_AUTH_FAILURE = 132,
|
2018-09-13 18:29:23 +03:00
|
|
|
XF_EXIT_NEGO_FAILURE = 133,
|
2021-06-25 21:35:54 +03:00
|
|
|
XF_EXIT_LOGON_FAILURE = 134,
|
|
|
|
XF_EXIT_ACCOUNT_LOCKED_OUT = 135,
|
2021-10-07 19:57:40 +03:00
|
|
|
XF_EXIT_PRE_CONNECT_FAILED = 136,
|
|
|
|
XF_EXIT_CONNECT_UNDEFINED = 137,
|
|
|
|
XF_EXIT_POST_CONNECT_FAILED = 138,
|
|
|
|
XF_EXIT_DNS_ERROR = 139,
|
|
|
|
XF_EXIT_DNS_NAME_NOT_FOUND = 140,
|
|
|
|
XF_EXIT_CONNECT_FAILED = 141,
|
|
|
|
XF_EXIT_MCS_CONNECT_INITIAL_ERROR = 142,
|
|
|
|
XF_EXIT_TLS_CONNECT_FAILED = 143,
|
|
|
|
XF_EXIT_INSUFFICIENT_PRIVILEGES = 144,
|
|
|
|
XF_EXIT_CONNECT_CANCELLED = 145,
|
2022-06-22 15:08:26 +03:00
|
|
|
|
2021-10-07 19:57:40 +03:00
|
|
|
XF_EXIT_CONNECT_TRANSPORT_FAILED = 147,
|
|
|
|
XF_EXIT_CONNECT_PASSWORD_EXPIRED = 148,
|
|
|
|
XF_EXIT_CONNECT_PASSWORD_MUST_CHANGE = 149,
|
|
|
|
XF_EXIT_CONNECT_KDC_UNREACHABLE = 150,
|
|
|
|
XF_EXIT_CONNECT_ACCOUNT_DISABLED = 151,
|
|
|
|
XF_EXIT_CONNECT_PASSWORD_CERTAINLY_EXPIRED = 152,
|
|
|
|
XF_EXIT_CONNECT_CLIENT_REVOKED = 153,
|
|
|
|
XF_EXIT_CONNECT_WRONG_PASSWORD = 154,
|
|
|
|
XF_EXIT_CONNECT_ACCESS_DENIED = 155,
|
|
|
|
XF_EXIT_CONNECT_ACCOUNT_RESTRICTION = 156,
|
|
|
|
XF_EXIT_CONNECT_ACCOUNT_EXPIRED = 157,
|
|
|
|
XF_EXIT_CONNECT_LOGON_TYPE_NOT_GRANTED = 158,
|
|
|
|
XF_EXIT_CONNECT_NO_OR_MISSING_CREDENTIALS = 159,
|
2013-04-28 08:23:36 +04:00
|
|
|
|
|
|
|
XF_EXIT_UNKNOWN = 255,
|
|
|
|
};
|
|
|
|
|
2021-06-18 11:00:21 +03:00
|
|
|
#define xf_lock_x11(xfc) xf_lock_x11_(xfc, __FUNCTION__)
|
|
|
|
#define xf_unlock_x11(xfc) xf_unlock_x11_(xfc, __FUNCTION__)
|
2020-03-04 13:33:06 +03:00
|
|
|
|
|
|
|
void xf_lock_x11_(xfContext* xfc, const char* fkt);
|
|
|
|
void xf_unlock_x11_(xfContext* xfc, const char* fkt);
|
2013-04-28 08:23:36 +04:00
|
|
|
|
2014-12-01 13:56:44 +03:00
|
|
|
BOOL xf_picture_transform_required(xfContext* xfc);
|
2020-05-18 15:27:13 +03:00
|
|
|
|
|
|
|
#define xf_draw_screen(_xfc, _x, _y, _w, _h) \
|
|
|
|
xf_draw_screen_((_xfc), (_x), (_y), (_w), (_h), __FUNCTION__, __FILE__, __LINE__)
|
|
|
|
void xf_draw_screen_(xfContext* xfc, int x, int y, int w, int h, const char* fkt, const char* file,
|
|
|
|
int line);
|
2013-05-09 05:51:16 +04:00
|
|
|
|
2022-11-28 08:22:32 +03:00
|
|
|
BOOL xf_keyboard_update_modifier_map(xfContext* xfc);
|
|
|
|
|
|
|
|
DWORD xf_exit_code_from_disconnect_reason(DWORD reason);
|
2013-04-28 08:23:36 +04:00
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#endif /* FREERDP_CLIENT_X11_FREERDP_H */
|