2 * FreeRDP: A Remote Desktop Protocol Client
5 * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
24 #include <X11/Xutil.h>
25 #include <freerdp/freerdp.h>
26 #include <freerdp/chanman/chanman.h>
27 #include <freerdp/gdi/gdi.h>
28 #include <freerdp/gdi/dc.h>
29 #include <freerdp/gdi/region.h>
30 #include <freerdp/rail/rail.h>
31 #include <freerdp/cache/cache.h>
33 typedef struct xf_info xfInfo;
35 #include "xf_window.h"
36 #include "xf_monitor.h"
38 #define SET_XFI(_instance, _xfi) (_instance)->param1 = _xfi
39 #define GET_XFI(_instance) ((xfInfo*) ((_instance)->param1))
41 #define SET_CHANMAN(_instance, _chanman) (_instance)->param2 = _chanman
42 #define GET_CHANMAN(_instance) ((rdpChanMan*) ((_instance)->param2))
51 typedef struct xf_WorkArea xfWorkArea;
89 uint8* primary_buffer;
94 boolean fullscreen_toggle;
95 uint32 keyboard_layout_id;
96 boolean pressed_keys[256];
97 XModifierKeymap* modifier_map;
98 XSetWindowAttributes attribs;
99 boolean complex_regions;
100 VIRTUAL_SCREEN vscreen;
101 uint8* bmp_codec_none;
104 void* clipboard_context;
107 Atom _MOTIF_WM_HINTS;
108 Atom _NET_CURRENT_DESKTOP;
112 Atom _NET_WM_STATE_FULLSCREEN;
113 Atom _NET_WM_STATE_SKIP_TASKBAR;
114 Atom _NET_WM_STATE_SKIP_PAGER;
116 Atom _NET_WM_WINDOW_TYPE;
117 Atom _NET_WM_WINDOW_TYPE_NORMAL;
118 Atom _NET_WM_WINDOW_TYPE_DIALOG;
119 Atom _NET_WM_WINDOW_TYPE_UTILITY;
121 Atom _NET_WM_MOVERESIZE;
124 Atom WM_DELETE_WINDOW;
127 void xf_toggle_fullscreen(xfInfo* xfi);
128 boolean xf_post_connect(freerdp* instance);
130 #ifdef WITH_DEBUG_X11
131 #define DEBUG_X11(fmt, ...) DEBUG_CLASS(X11, fmt, ## __VA_ARGS__)
133 #define DEBUG_X11(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__)
136 #ifdef WITH_DEBUG_X11_LOCAL_MOVESIZE
137 #define DEBUG_X11_LMS(fmt, ...) DEBUG_CLASS(X11_LMS, fmt, ## __VA_ARGS__)
139 #define DEBUG_X11_LMS(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__)
143 #endif /* __XFREERDP_H */